if(GetPlayerPing(playerid) > 1000) // edit if you want to
{
new Nam[MAX_PLAYER_NAME],str[128];
GetPlayerPos(playerid,Nam,sizeof(Name));
format(str,sizeof(str),"PINGBOT: %s has been kicked for having %d ping(MAX = 1000)",Nam,GetPlayerPing(playerid));
SendClientMessageToAll(0xFF0000FF,str);
Kick(playerid);
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "SERVER: Password does not match your name. you have been kicked as a result.");
Kick(playerid);
return 1;
}
if(PlayerInfo[playerid][pPermBand] == 1)
{
new banstring[256];
format(banstring,sizeof(banstring),"AdmCmd: %s has been banned, reason: Attempting to log into a perma-banned account.",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,banstring);
Ban(playerid);
}
It isn't but you aren't helping , therefore it will take longer.
Unless you supply some code. How do we know which exact script you are using ? Give us the code which has the kick/ban thing. or at least some information. |
}
else
{
SendClientMessage(playerid, COLOR_RED, "SERVER: Password does not match your name. you have been kicked as a result.");
Kick(playerid);
return 1;
}
if(PlayerInfo[playerid][pPermBand] == 1)
{
new banstring[256];
format(banstring,sizeof(banstring),"AdmCmd: %s has been banned, reason: Attempting to log into a perma-banned account.",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,banstring);
Ban(playerid);
}
if(PlayerInfo[playerid][pBand] == 3)
{
new banstring[256];
format(banstring,sizeof(banstring),"AdmCmd: %s has been banned, reason: Attempting to log into a banned account.",PlayerName(playerid));
SendClientMessageToAll(COLOR_LIGHTRED,banstring);
Ban(playerid);
}
Kick(playerid);
I'v done it and it works, but i also want the "Login" dialog box to come back so he can try again.
|