SA-MP Forums Archive
how to get score +5 every kill - 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 get score +5 every kill (/showthread.php?tid=482128)



how to get score +5 every kill - Acres - 19.12.2013

how am i abel to make that every kil you make you get +5 score? Please would be nice if i found it


Re: how to get score +5 every kill - SilentSoul - 19.12.2013

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)//this is the call back , which detect the death of each player
{
    SetPlayerScore(killerid,GetPlayerScore(killerid)+5);//here we are going to check the current killer score , and increase them plus 5
    return 1;
}