26.07.2012, 19:49
Hmm can I ask how did you know the codes below it doesn't get executed? Did you test it alone? Or were there someone testing it with you (Who killed you or you probably killed them)?
Because if you have it under OnPlayerDeath like this:
while killerid is not connected (INVALID_PLAYER_ID) it would never execute the code after the killing spree function.
If what I said is true, then you can add this before doing any checks in your stock to get rid of this issue
Because if you have it under OnPlayerDeath like this:
pawn Код:
KillingSpree(killerid);
If what I said is true, then you can add this before doing any checks in your stock to get rid of this issue
pawn Код:
stock KillingSpree(killerid)
{
if(!IsPlayerConnected(killerid)) // add this
return 1; // and this
// Your stock codes here