20.06.2010, 01:50
First:
Place this on top of your script:
Second:
Place this under OnPlayerDeath Callback :
And your done!
Place this on top of your script:
Код:
new KillingSpree[MAX_PLAYERS];
Place this under OnPlayerDeath Callback :
Код:
public OnPlayerDeath(playerid, killerid, reason) { KillingSpree[killerid] ++; // Means that the killer will get 1 kills KillingSpree[playerid] = 0; // Means that the player who died his killing spree will be restored to 0. if(KillingSpree[killerid] == 3) // It finds if the player is on a Killing Spree of 3 kills , you may change { // If you want to give the player that has 3 killing spree a reward do something here } return 1; }
And your done!