*Re-opened*
Any suggstions, because I am clueless. It kicks players with [Cheater]Nick, but it also kicks players with such names as [clan tag]^Nick, or Nick@; why is it happening, the code shoud not check for special signs, but it does and kicks them.
Code:
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public kick(id)
{
server_cmd("kick #%d ^"MY MESSAGE^"", get_user_userid(id))
}
public client_infochanged(id)
{
new name[32]
get_user_name(id, name, 31)
if(containi(name, "Cheater") != -1)
{
kick(id)
return
}
new i, c
while((c = name[i++]))
{
switch(c)
{
case 33, 35, 36, 37, 38, 40, 41, 42, 64, 94, 123, 125:
{
kick(id)
return
}
}
}
}
P.S. that is the complete piece of code.