07.02.2013, 14:46
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
for(new i = 0, y = GetMaxPlayers(); i != y; i++)
{
new IP[16];
GetPlayerIp(i, IP, 16);
if(strcmp(ip, IP)) continue;
new NickName[MAX_PLAYER_NAME];
GetPlayerName(i, NickName, MAX_PLAYER_NAME);
if(!strcmp(NickName, "Nill_Oliveira", true)
{
SendClientMessage(x, 0xFFFFFFFF, "Vocк estб autorizado а logar na RCON.");
}
else
{
SendClientMessage(x, 0xFFFFFFFF, "Vocк nгo estб autorizado a logar na RCON.");
Kick(i); // ou Ban(i);
}
}
}
return 1;
}