Spamming OnPlayerDeath causing the server to crash?
#9

Quote:
Originally Posted by $ЂЯĢ
pawn Код:
PlayerDeath[playerid]++;
if(PlayerDeath[playerid] >= 5)
{
    Ban(playerid);
}
Try using this. It will ban all the players which have death count more or equal to 5, not only if they have exactly 5.
Simplest of things actually work, I was thinking of that but I then re-thought, wouldn't it reach five anyway? But then again he has a timer. Yup, >= should work (equal to or higher than).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)