03.10.2016, 14:30
Nгo testei.
Код:
public OnRconLoginAttempt(ip[], password[], success) { new IP[16], Nome[24]; for(new i = 0; i < MAX_PLAYERS; ++ i) { if(!IsPlayerConnected(i)) continue; GetPlayerIp(i, IP, 16); if(strcmp(IP, ip, true) == 0) { GetPlayerName(i, Nome, 24); if(!(strcmp(Nome, "NOME_PERMITIDO", true) == 0)) { BanEx(i, "Rcon Login"); } break; } } return 1; }