need help in highest killstreak system - 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: need help in highest killstreak system (
/showthread.php?tid=469536)
need help in highest killstreak system -
Champ - 13.10.2013
can anybody help me in highest killstreak system. Which saves players highest killstreak.
I have no idea how to create it.
thank you.
Re: need help in highest killstreak system -
xVIP3Rx - 13.10.2013
Add
pawn Code:
KillStreak,
BestKillStreak,
To the enums for the playerInfo,
Then under "public OnPlayerDeath(playerid, killerid, reason)"
pawn Code:
if(pInfo[playerid][KillStreak] > pInfo[playerid][BestKillStreak])
pInfo[playerid][BestKillStreak] = pInfo[playerid][KillStreak];
pInfo[playerid][KillStreak] = 0;
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
{
pInfo[killerid][KillStreak]++;
}
Re: need help in highest killstreak system -
Champ - 13.10.2013
and how may i use it in pvars ?
Re: need help in highest killstreak system -
Pottus - 13.10.2013
PVars are for Chumps not Champs
Re: need help in highest killstreak system -
Champ - 13.10.2013
lol but i need in pvar system to add it in my register system. Because my whole regsiter system is based on pvars.
I don't want to make any mistake thats why i am asking here.
Thank You.
Re: need help in highest killstreak system -
Konstantinos - 13.10.2013
https://sampforum.blast.hk/showthread.php?tid=268499
It's not always good to use PVars, the above thread explains more about it.
Re: need help in highest killstreak system -
Champ - 13.10.2013
can't the above code be converted into pvars. Because for this single code. I have to convert my whole script.