need help in highest killstreak system
#1

can anybody help me in highest killstreak system. Which saves players highest killstreak.
I have no idea how to create it.

thank you.
Reply
#2

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]++;
        }
Reply
#3

and how may i use it in pvars ?
Reply
#4

PVars are for Chumps not Champs
Reply
#5

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.
Reply
#6

https://sampforum.blast.hk/showthread.php?tid=268499

It's not always good to use PVars, the above thread explains more about it.
Reply
#7

can't the above code be converted into pvars. Because for this single code. I have to convert my whole script.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)