05.06.2009, 16:02
When I try to change nick into other with illegal characters server don't change it.
I tried this:
But this doesn't work, so how to make something like this, that player cant write /nick and nickname with bad symbols(!@#$%^&* etc.) ?
I tried this:
pawn Code:
new CheckNick[MAX_PLAYER_NAME];
SetPlayerName(playerid,NewNick);
GetPlayerName(playerid,CheckNick,MAX_PLAYER_NAME);
if(!strcmp(NewNick,CheckNick,true))
return SendClientMessage(playerid,red,"[SERVER]: Bad symbols in nickname!");