ID:1293690
 
(See the best response by Albro1.)
How could I codder a verb for admins get summon an NPC?

Code:
mob/Login()
src.client.verbs -= new/mob/Admin/verb/Summon()
if(src.Admin)
src.client.verbs += new/mob/Admin/verb/Summon()
..()

mob
Admin
verb
Summon(mob/NPC/M in world)
set category = "Admin"
if(!M.client)
M.loc = locate(src.x,src.y,src.z)
verb
Admin_Mode()
if(src.Admin)
src.Admin = 0
src << "You are no longer Admin."
src.client.verbs -= new/mob/Admin/verb/Summon()
if(!src.Admin)
src.Admin = 1
src << "You are now Admin."
src.client.verbs += new/mob/Admin/verb/Summon()

mob/NPC

mob/var
Admin = 0

Good luck!
I'm a bit confused. Doesn't the Admin Mode verb basically allow any mob to become an Admin then?
Thanks you Konlet <33
In response to SilencedWhisper
He asked for a verb for admins to summon an NPC. I simply added the verb Admin_Mode() to test it.
Best response
Konlet, it's noble of you, but please don't just give out code like that. The environment we are trying to provide here is one of guidance and advice, not one where you get a snippet of code without any work on your part just by asking. Push people in the right direction and maybe give them small snippets that show concepts but don't actually work - which promotes learning and progress in the people looking for help.