13.06.2013, 13:54
I guess you should make a new variable, name it whatever you want, for example I'd name it SuicideAttempts.
so
so
pawn Код:
new SuicideAttempts[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == playerid)
{
SuicideAttempts[playerid]++;
}
return 1;
}
//then under the onplayerupdate callback check if he has 3 suicide attempts at hand ( if(suicideattempts[playerid] >= 3) ), If it is, kick/ban him. hopefull this will help