25.03.2011, 18:52
hi,
i got killstreaks on my server but now id like to know how would i get the highest killstreak that has been made in the round and the name of the player who did this at the end of the round?
This is how my killstreaks work:
I think i have to save the killstreaks of every playe to variables and compare them at the end of the round?
I hope someone can help me.
regards.
i got killstreaks on my server but now id like to know how would i get the highest killstreak that has been made in the round and the name of the player who did this at the end of the round?
This is how my killstreaks work:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
Killstreak[playerid] = 0;
if(IsPlayerConnected(killerid))
{
Killstreak[killerid]++;
switch(Killstreak[killerid])
{
case 1:
{
//code for 1 kill.......
}
I hope someone can help me.
regards.