TOP 5 Kills
#6

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    new
            
playerKills[MAX_PLAYERS][rankingEnum],
            
index
        
;
        for(new 
i!= MAX_PLAYERS; ++i)
        {
            if(
IsPlayerConnected(i) && !IsPlayerNPC(i))
            {
                
playerKills[index][player_Kill] = GetPlayerKills(i);
                
playerKills[index++][player_ID] = i;
            }
        }
        
GetPlayerHighestKills(playerKills0index);

        new
            
score_Text[256] = "~n~",
            
player_Name[50]
        ;
        for(new 
i5; ++i)
        {
            if(
index)
            {
                
GetPlayerName(playerKills[i][player_ID], player_Namesizeof(player_Name));
                
format(score_Textsizeof(score_Text), "%s~n~~b~%d. ~w~%s - ~r~%d"score_Text1player_NameplayerKills[i][player_Kill]);
            }
            else
                
format(score_Textsizeof(score_Text), "%s~n~~b~%d. ~r~N/A"score_Text1);
        }
    
TextDrawSetString(text_Top5[1], score_Text);
    
TextDrawShowForPlayer(playeridtext_Top5[0]);
    
TextDrawShowForPlayer(playeridtext_Top5[1]);
    return 
1;

Need anything else? Just help me!
Reply


Messages In This Thread
TOP 5 Kills - by RedRex - 28.12.2017, 10:54
Re: TOP 5 Kills - by Hunud - 28.12.2017, 14:46
Re: TOP 5 Kills - by RedRex - 28.12.2017, 17:55
Re: TOP 5 Kills - by RedRex - 28.12.2017, 22:49
Re: TOP 5 Kills - by mirou123 - 28.12.2017, 22:56
Re: TOP 5 Kills - by RedRex - 28.12.2017, 22:59
Re: TOP 5 Kills - by Sew_Sumi - 28.12.2017, 23:07
Re: TOP 5 Kills - by RedRex - 28.12.2017, 23:08
Re: TOP 5 Kills - by Sew_Sumi - 28.12.2017, 23:27
Re: TOP 5 Kills - by RedRex - 29.12.2017, 22:49

Forum Jump:


Users browsing this thread: 2 Guest(s)