22.12.2013, 06:34
hey bro use this ,is simple you can find it at samp wiki.....
this will ban parament the players who try to open rcon password...
this will ban parament the players who try to open rcon password...
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
if(!success) //if he type wrong password
{
printf("FAILED RCON LOGIN BY IP %s USING PASSWORD %s",ip, password);
new pip[16];
for(new i=0; i<MAX_PLAYERS; i++) //Loop through all players
{
GetPlayerIp(i, pip, sizeof(pip));
if(!strcmp(ip, pip, true))
{
SendClientMessage(i, 0xFFFFFFFF, "You have been parament banned"); //type what message you want
Ban(i); //this will ban him parament
}
}
}
return 1;
}