20.01.2013, 20:41
how to make roleplay names i mean that when some one log into my server to have name_lastname?
if(!strfind(playername, "_", true, 1) !=-1) return Kick(playerid);
You must find a character in the whole name:
pawn Код:
Add this at the OnPlayerConnect Callback |
new name[128];
GetPlayerName(playerid, name, sizeof(name))
if(strstr(playername, "_"))
return Kick(playerid);
You must find a character in the whole name:
pawn Код:
Add this at the OnPlayerConnect Callback |
/^[a-zA-Z].+_[a-zA-Z].+$/