SA-MP Forums Archive
How to add kills/death on OnPlayerDeath - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to add kills/death on OnPlayerDeath (/showthread.php?tid=431940)



How to add kills/death on OnPlayerDeath - LeeXian99 - 20.04.2013

Hmm, I wanted to do this, but I don't know how.


Re: How to add kills/death on OnPlayerDeath - [MG]Dimi - 20.04.2013

Do you have Player Variables?
pawn Код:
pInfo[playerid][Deaths]++;
if(killerid != INVALID_PLAYER_ID)
{
    pInfo[killerid][Kills]++;
}
Replace with your vars.