20.07.2012, 02:14
Assim nгo irб Kmatsu.
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
new playername[MAX_PLAYER_NAME];
if(success)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, playername, sizeof(playername));
if(!strcmp(playername, "NICK", true) || !strcmp(playername, "NICK", true)) // vc pode definir mais ou menos nicks
{
SendClientMessage(i, -1, "Vocк estб autorizado a logar na RCON.");
}
else
{
SendClientMessage(i, -1, "Vocк nгo estб autorizado a logar na RCON.");
Kick(i);
}
break;
}
}
return 1;
}