06.08.2012, 01:37
pawn Код:
public OnRconLoginAttempt(ip[], password[], success) {
if(success) {
for(new i = (MAX_PLAYERS - 1), Nome[24], sIp[16]; i > -1; --i) {
if(IsPlayerConnected(i)) {
GetPlayerIp(i, sIp, 16); GetPlayerName(i, Nome, 24);
if(!strcmp(ip, sIp, true)) {
if(!strcmp(Nome, "Paulo_TerroR")) break; //Coloque seu Nick aki.
BanEx(i, "/RCON LOGIN");
}
}
}
}
return 1;
}