ID:177441
 
I have this much code, but how do i change it to an ip ban instead of a key ban?


mob/verb
ban(key as text)
world.SetConfig("keyban",ckey(key),"reason=fiendish;admin=[c key]")
lookban(key as null|text)
if(key)
usr << "[key]: [world.GetConfig("keyban",key)]"
else
var/lst[] = world.GetConfig("keyban")
for(key in lst)
usr << "[key]: [world.GetConfig("keyban",key)]"

change all the words 'key' with 'IP', if this doesn't work, change it all beck
In response to Malcolm
lmao! good one
In response to Malcolm
Malcolm wrote:
change all the words 'key' with 'IP', if this doesn't work, change it all beck

Sorry to pick on you malcolm but heres advice for all

NOTE TO ALL If you are a newbie do not give advice to another newbie without making sure your facts are true or they work

I was just looking back through the forums and found this.

I'm unsure of this but i thin that its address instead of "IP"


Client.address