19.12.2013, 00:32
I need newest anticheat to prevent players using Fakekill and killing whole server.
new stock bool:HasDied[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
if(HasDied[playerid])
{
new string[128];
GetPlayerName( playerid, string, sizeof(string) );
format(string, sizeof(string), "%s (id: %i) has been kicked for fake kill cheat", string, playerid);
SendClientMessageToAll(-1, string);
print(string);
Kick(playerid);
}
HasDied[playerid] = true;
return 1;
}
public OnPlayerSpawn(playerid)
{
HasDied[playerid] = false;
return 1;
}