20.02.2012, 16:54
i want longest killstreak(kills without death) in my stats but i don't know how to make, can any one make it here. i am using dini saving system and i using ladmin system, please make.....
new streaks[MAX_PLAYERS]; //global
public OnPlayerDeath(playerid, killerid, reason)
{
streaks[killerid]++; //will add 1 to the killer's streak
streaks[playerid] = 0; // will reset the streaks of the player who dies
switch(streaks[killerid]
{
case :1
{
GameTextForAll("1 kill", 1000, 2);
}
case :2
{
//continue here
}
}
return 1;
}