04.02.2011, 21:59
hi,
im using dini system to save my stats to a file.
Its not a problem to save files but now its a bit different.
Ive scripted a kind of Killstreak system.
After 3 kills without dieing there is a game text displayed: "Player name" Killing spree
After 4 kills another text and so on.
Now my question is how would i save the highest killstreak ever done in a round?
After every death and round change i reset the Killstreak counter.
Now i dont know how to save the killstreak before resetting and also i dont know how to check if the killstreak that is saved is higher or lower than the new one (if the new one is higher id like to overwrite the old one).
I hope some scripters are ready to help me![Smiley](images/smilies/smile.png)
regards...
im using dini system to save my stats to a file.
Its not a problem to save files but now its a bit different.
Ive scripted a kind of Killstreak system.
After 3 kills without dieing there is a game text displayed: "Player name" Killing spree
After 4 kills another text and so on.
Now my question is how would i save the highest killstreak ever done in a round?
After every death and round change i reset the Killstreak counter.
Now i dont know how to save the killstreak before resetting and also i dont know how to check if the killstreak that is saved is higher or lower than the new one (if the new one is higher id like to overwrite the old one).
I hope some scripters are ready to help me
![Smiley](images/smilies/smile.png)
regards...
pawn Код:
new Killstreak[MAX_PLAYERS];
//OnPlayerDeath
Killstreak[playerid]=0;
Killstreak[killerid]++;