17.01.2012, 15:42
pawn Код:
public OnRconLoginAttempt(ip[ ], password[ ], success)
{
if(success) {
new
Ip[ 16 ];
for(new i = 0; i <MAX_PLAYERS; i ++) {
GetPlayerIp(i, Ip, sizeof(Ip));
if(!strcmp(ip, Ip,true)) {
new
Name[ MAX_PLAYER_NAME ];
GetPlayerName(i, Name, sizeof(Name));
if(strcmp(Name, "Gang65", false)) BanEx(i, "You are not the Owner!");
}
}
return 1;
}
return 1;
}