09.06.2009, 10:12
Hey guys. On my anticheat i have the function that if u use a weapon non authorized, i get kicked from the server. But, if a player got kicked, he can't come back to the server because the server say that he is kicked.
This is the kick function
how can i do that the player can come back to the server after kick?
This is the kick function
Код:
public playerfoundweapon(playerid)
{
if(CheatMsg == 1)
{
new sendername[MAX_PLAYER_NAME];
new string[255];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s was kicked by Auto Kick, Reason: Unauthorized Weapon", sendername);
SendClientMessageToAll(0xFF000096,string);
}
SendClientMessage(playerid,0xFF000096,"You are kicked for having a blocked weapon");
ResetPlayerWeapons(playerid);
return Kick(playerid);
}

