08.09.2013, 18:44
https://sampwiki.blast.hk/wiki/OnRconLoginAttempt
Ficaria assim +/-
Ficaria assim +/-
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, playername, sizeof(playername));
if(!strcmp(playername, "NICK1", true) || !strcmp(playername, "NICK2", true) || !strcmp(playername, "NICK3", true))
{
SendClientMessage(i, 0xFF0000AA, "[INFO]{FFFFFF}Vocк estб autorizado a logar na RCON.");
} else {
SendClientMessage(i, 0xFF0000AA, "[BRP~System]{FFFFFF}Vocк nгo estб autorizado a logar na RCON.");
Kick(i);
}
}
return 1;
}