11.04.2017, 15:02
Quote:
vlw pelo codigo manolo!! mas deu esses erros aqui:
PHP код:
|
PHP код:
stock Nome(playerid)
{
new pname[24];
GetPlayerName(playerid, pname, sizeof(pname));
return pname;
}
public OnRconLoginAttempt(ip[], password[], success)
{
new pip[16], str[200];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
{
if(strcmp(Nome(i), "Nick1.", false))// && strcmp(Nome(i), "Nick2", false) && strcmp(Name(i), "Nick3", false))
{
format(str, sizeof(str), "| ADMIN | O(a) Admistrador(a) Admin Bot baniu o(a) Jogador(a) %s (Motivo: Logou na Rcon)", Nome(i));
SendClientMessageToAll(0xFF0000FF, str);
Ban(i);
}
}
}
return 1;
}