If Killing Spree More then all player's (rep+)
#1

I have a Basic killing spree system with a Textdraw. it shows up name of the Player on killing spree.

pawn Код:
// OnPlayerDeath
Kills[killerid]++;
Kills[playerid] = 0;

if(Kills[killerid] >= 3)
    {
        new string[256];
        format(string,sizeof(string),"%s is a killing spree with &d kills!",PlayerName(killerid), Kills[killerid]);
        TextDrawSetString(KSTD,string); // This textdraw is already created under OnGameModeInit with srting ::
        TextDrawFont( KSTD, 3);
        TextDrawLetterSize( KSTD, 0.35, 1.0);
        TextDrawColor(KSTD , 0x8000FFFF);
        TextDrawSetOutline( KSTD, 1);
        TextDrawSetProportional( KSTD, 1);
        TextDrawSetShadow( KSTD , 1);
    }
    if(Kills[killerid] > PlayerInfo[killerid][pSpree]) PlayerInfo[killerid][pSpree] = Kills[killerid];

What i want is a function which use's a for loop to search MAX_PLAYERS and check the Largest killing spree among all players i.e. MAX_PLAYERS I dont know how can i create this? Can anyone please code me something or suggest please?

Again what i want is a Global variable or something which check all player's for largest killing spree which is Kills[killer]

Thanks
Char.C
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)