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.
ID:159953
Dec 13 2008, 2:05 pm
|
|
Dec 13 2008, 2:27 pm
|
|
Yes, you can do that with verbs.
|
mob/var/isadmin 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() 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) |
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
|
|
In response to Schnitzelnagler
|
|
In response to Jujitsubb777
|
|
Oh. What I was doing was spawning it in your contents.
new/obj/Blah(loc)
|