I'm trying to make a restriction for clients who changed their name or uses symbols: "
~ `"
Here is the code:
PHP Code:
public client_infochanged(id)
{
new Name[32]
get_user_name(id, Name, 31)
if(containi(Name, "`"))
{
set_user_info(id, "name", "SYMBOL")
}
return PLUGIN_HANDLED
}
The code it's working only if the client change his name into "
`". But if the client change his name into "
`````````" or "
a``````````" the code won't work.