mob/host/verb
Ban(mob/M in world)
set category="Admin"
if(!M.client||M==src) return
world << "
var/obj/banned/b=new
b.name="[M.key]"
b.num=M.client.address
b.keyname="[M.key]"
Banned+=b
del M
ID:174022
![]() Oct 11 2003, 4:21 pm
|
|
i got this verb from gunbuddy13's host command library. and it shows the NPC's too. how do i make it show only players that is attached to a client.
mob/host/verb Ban(mob/M in world) set category="Admin" if(!M.client||M==src) return world << " var/obj/banned/b=new b.name="[M.key]" b.num=M.client.address b.keyname="[M.key]" Banned+=b del M |
var/list/players=list()
for(var/mob/M in world)
if(M.client)
players.Add(M)
var/mob/M=input("Ban who?","Ban")in players
Add/change the bold lines.