10.10.2009, 15:50
You could just put the code under OnPlayerDeath, and it would be fine, but you could also make it work the current way you've coded it, like so.
_________________________________________________
Now simply add this to OnPlayerDeath and it will call when someone dies
. You should also add checking to make sure it's a valid death and a valid killer.
Note: You're also missing a closing bracket from if(GetPlayerScore(playerid) == 3) and there's no need for the ; at the end of it either.
pawn Код:
forward KillingSpree(playerid); // Change the public one too
Now simply add this to OnPlayerDeath and it will call when someone dies

pawn Код:
KillingSpree(killerid);