Quote:
Originally Posted by Victor'
pawn Код:
public OnPlayerConnect(playerid) { if(strlen(GetPlayerNameEx(playerid)) <3 || strcmp(GetPlayerNameEx(playerid), " ", true) == 0) return Kick(playerid); return 1; }
public OnPlayerCommandText(playerid, cmdtext[]) { if(strlen(GetPlayerNameEx(playerid)) <3 || strcmp(GetPlayerNameEx(playerid), " ", true) == 0) return Kick(playerid); if(strfind(cmdtext, "/register", true) != -1) return Kick(playerid); return 1; }
stock GetPlayerNameEx(playerid) { new name[24]; GetPlayerName(playerid, name, 24); return name; }
|
Esse cуdigo ta fechando o GM...