Who can help me make script
#8

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
This is wrong section for requesting scripts

i have created for you one and its working i have tested it give a try

PHP код:
new Slot1 = -1Slot2 = -1Slot3 = -1Slot4 = -1Slot5 = -1Highestkills 0;
new 
Text:Textdraw0;
public 
OnGameModeInit()
{
    
Textdraw0 TextDrawCreate(476.875000216.833282" ");
    
TextDrawLetterSize(Textdraw00.4000001.600000);
    
TextDrawTextSize(Textdraw0621.0000000.000000);
    
TextDrawAlignment(Textdraw01);
    
TextDrawColor(Textdraw0, -1);
    
TextDrawUseBox(Textdraw01);
    
TextDrawBoxColor(Textdraw0255);
    
TextDrawSetShadow(Textdraw00);
    
TextDrawSetOutline(Textdraw00);
    
TextDrawBackgroundColor(Textdraw0255);
    
TextDrawFont(Textdraw01);
    
TextDrawSetProportional(Textdraw01);
    
TextDrawSetShadow(Textdraw00);
    return 
1;
}
CMD:showtop(playeridparams[])
{
                
/*Note:
                You have to change your kills variable with PlayerInfo[x][kills]
                */
                
for(new x=0x<MAX_PLAYERSx++) if (IsPlayerConnected(x)) if (PlayerInfo[x][kills] >= Highestkills)
                {
                    
Highestkills PlayerInfo[x][kills];
                    
Slot1 x;
                }
                
Highestkills 0;
                for(new 
x=0x<MAX_PLAYERSx++) if (IsPlayerConnected(x) && != Slot1) if (PlayerInfo[x][kills] >= Highestkills)
                {
                    
Highestkills PlayerInfo[x][kills];
                    
Slot2 x;
                }
                
Highestkills 0;
                for(new 
x=0x<MAX_PLAYERSx++) if (IsPlayerConnected(x) && != Slot1 && != Slot2) if (PlayerInfo[x][kills][x] >= Highestkills)
                {
                    
Highestkills PlayerInfo[x][kills];
                    
Slot3 x;
                }
                
Highestkills 0;
                
format(stringsizeof(string), "_______Top_3_Killers~n~~n~1-~g~~y~%s_(Kills_%d)~n~~n~"PlayerName(Slot1), PlayerInfo[Slot1][kills]);
                
                if(
Slot2 != -1)
                {
                    
format(stringsizeof(string), "_______Top_3_Killers~n~~n~1-~g~%s_(Kills_%d)~n~2-~y~%s_(Kills_%d)~n~~n~"PlayerName(Slot2),PlayerInfo[Slot2][kills]);
                }
                if(
Slot3 != -1)
                {
                    
format(stringsizeof(string), "_______Top_3_Killers~n~~n~1-~g~%s_(Kills_%d)~n~2-~y~%s_(Kills_%d)~n~3-~y~%s_(Kills_%d)~n~~n~"PlayerName2(Slot3), PlayerInfo[Slot3][kills]);
                }
                
TextDrawSetString(Textdraw0string);
                        
TextDrawShowForPlayer(playeridTextdraw0);
                return 
1;

Omg dude your the best (y) thanks a lot.
Reply


Messages In This Thread
Who can help me make script - by Pokemon64 - 20.11.2016, 09:37
Re: Who can help me make script - by BiosMarcel - 20.11.2016, 09:43
Re: Who can help me make script - by Yaa - 20.11.2016, 10:13
Re: Who can help me make script - by Pokemon64 - 20.11.2016, 10:20
Re: Who can help me make script - by Pokemon64 - 20.11.2016, 17:34
Re: Who can help me make script - by Pokemon64 - 21.11.2016, 07:11
Re: Who can help me make script - by IceBilizard - 21.11.2016, 09:05
Re: Who can help me make script - by Pokemon64 - 21.11.2016, 09:51
Re: Who can help me make script - by Pokemon64 - 21.11.2016, 13:46
Re: Who can help me make script - by IceBilizard - 21.11.2016, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)