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. |
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? |
Does the game recognize you as an owner?
mob/Login() Also, use DM tags when posting multiple lines of code. |
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) |