-
Posts
207 -
Joined
-
Last visited
Community Answers
-
Shad0wdpbgd's post in Problema Rcon /rcon login was marked as the answer
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success)
{
new pip[16];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
{
if(PlayerInfo[i][pAdmin] < 7)
{
Kick(i);
}
}
}
}
}
return 1;
}
incearca asa