Kill Streak
#1

I'm making a killstreak thing for my server, but I just want to know how exactly do I find how many kills they have gotten without dying? What's the best method I mean..
Reply
#2

Heres an example :
pawn Код:
new KillingSpree[playerid];

public OnPlayerDeath(playerid, killerid, reason)
{
 KillingSpree[killerid] ++;
 KillingSpree[playerid] = 0;
 if(KillingSpree[killerid] == 3){
 SendClientMessage(playerid, Color, "SERVER : You now have 3 killing sprees!");}
 return 1;
}
You get the idea
Reply
#3

Have a variable like
Код:
new killingspree[MAX_PLAYERS];
Then
Код:
 
public OnPlayerDeath(playerid,killerid,reason)
{
  killingspree[playerid]=0;
  killingspree[killerid]++;
  return 1;
}
EDIT: Viruzz beat me to it :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)