16.04.2017, 02:19
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
for(new x = 0, y = GetMaxPlayers(); x != y; x++)
{
new IP[16];
GetPlayerIp(x, IP, 16);
if(strcmp(ip, IP)) continue;
new NickName[MAX_PLAYER_NAME];
GetPlayerName(x, NickName, MAX_PLAYER_NAME);
if(!strcmp(NickName, "MeuNick", true) || !strcmp(NickName, "", true) || !strcmp(NickName, "", true)|| !strcmp(NickName, "", true) || !strcmp(NickName, "", true)|| !strcmp(NickName, "", true))
{
SendClientMessage(x, 0x00FF00FF, "Vocк estб autorizado a logar na RCON.");
}
else
{
SendClientMessage(x, COR_ERRO, "Vocк nгo estб autorizado a logar na RCON.");
Kick(x);
}
}
}
return 1;
}