[Request] Longest Killstreak - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Request] Longest Killstreak (
/showthread.php?tid=319847)
[Request] Longest Killstreak -
Champ - 20.02.2012
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.....
Re: [Request] Longest Killstreak -
emokidx - 20.02.2012
pawn Код:
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;
}
something like that i guess