Hacker Killing Himself/Fake Kill
#6

I guess you should make a new variable, name it whatever you want, for example I'd name it SuicideAttempts.
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
Reply


Messages In This Thread
Hacker Killing Himself/Fake Kill - by Guest123 - 13.06.2013, 11:35
AW: Hacker Killing Himself/Fake Kill - by HurtLocker - 13.06.2013, 11:43
Re: Hacker Killing Himself/Fake Kill - by Guest123 - 13.06.2013, 11:48
Re: Hacker Killing Himself/Fake Kill - by dannyk0ed - 13.06.2013, 11:52
Re: Hacker Killing Himself/Fake Kill - by Guest123 - 13.06.2013, 12:17
Re : Hacker Killing Himself/Fake Kill - by Sandiel - 13.06.2013, 13:54

Forum Jump:


Users browsing this thread: 1 Guest(s)