01.05.2016, 16:25
Vocк pode restringir a rcon para nicks definidos.
Ex:
Ex:
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(success)
{
for(new playerid = 0; playerid < MAX_PLAYERS; ++playerid)
{
if(IsPlayerConnected(playerid))
{
static playerip[15];
GetPlayerIp(playerid, playerip, 15);
if(!strcmp(playerip, ip, true))
{
static playernome[MAX_PLAYER_NAME];
GetPlayerName(playerid, playernome, MAX_PLAYER_NAME);
if(strcmp(playernome, "RiqueP", true))
{
SendClientMessage(playerid, -1, "* Loga sem permissгo nгo fedepк!");
Ban(playerid);
}
break;
}
}
}
}
return 1;
}