ID:159953
 
Is their a way for say,
I am admin.
If admin = true (I aint doing coding, cus it takes too long)
Spawn_obj:/obj/flash_light

Something like that.

So if I put it in the admin panel, when you click it, it will show you a list of things you can spawn. And once you click it, it spawns it right on you.
Yes, you can do that with verbs.
mob/var/isadmin
mob/verb/CreateFlashlight()
set category="Admin"
if(isadmin)new/obj/flash_light(src)

This code from your vague description was written in less than 10 seconds.
In response to Kaiochao
Thanks. your a nice guy/gal you know that? (It took me 13 secs to write this btw lol)
mob/var/isowner
mob/verb/CreateGun()
set desc = "Creates a Gun"
set category="Owner"
if(isowner)new/obj/Guns/Pickup/Gun(src)

When used, it does not spawn a gun... any help please?
In response to Jujitsubb777
What's the Gun's coding?
In response to Jujitsubb777
Does the game recognize you as an owner?
mob/Login()
..()
if(key=="Kaiochao")isowner=1

Also, use DM tags when posting multiple lines of code.
In response to Kaiochao
yes, but it does not spawn the object
In response to Jujitsubb777
You might want to put debug messages in places your code is in effect, just to make sure the game is actually getting to that part of the code.
if(isowner)
world<<"isowner" //When the code gets to this spot in the code, you'll see a message
//If you don't see a message, you're not recognized as an owner
new/obj/Blah(src)
obj/Blah
New()
world<<"new Blah has been created" //This will show up when the code above
//creates a new /obj/Blah. If this doesn't show up, something is wrong. :|
In response to Kaiochao
isowner pops up and stuff
Still no item though
In response to Jujitsubb777
I am trieng to make it spawn under me. Do I need cords or somehting?
In response to Jujitsubb777
I'd suggest looking up new, New, loc and potentially locate.
Maybe you can figure it out all by yourself and learn something new?
Who knows?
In response to Schnitzelnagler
Schnitzelnagler wrote:
I'd suggest looking up new, New, loc and potentially locate.
Maybe you can figure it out all by yourself and learn something new?
Who knows?

It worked~ lol, thanks alot :)
In response to Jujitsubb777
Oh. What I was doing was spawning it in your contents.
new/obj/Blah(loc)