SA-MP Forums Archive
Top 5 Kills as Textdraw - 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: Top 5 Kills as Textdraw (/showthread.php?tid=279140)



Top 5 Kills as Textdraw - Zcelo12 - 25.08.2011

Hey guys,
I want to do a Textdraw. In that Textdraw should be shown the Top
5 Killers who are connected or saved in a file
SO the Textdraws i still have.
But i don't know how to script it that it will shown the Top 5.

Hope you understand me.
greez


Re: Top 5 Kills as Textdraw - Kingunit - 25.08.2011

Do you have already the textdraw?


Re: Top 5 Kills as Textdraw - iggy1 - 25.08.2011

More importantly, what file system do you use?


AW: Top 5 Kills as Textdraw - Zcelo12 - 25.08.2011

I forgot to say that i still have the Textdraws create and the file system i use is
SII (Slicks Ini Include)


Re: Top 5 Kills as Textdraw - Kingunit - 25.08.2011

Drop down the textdraw so we can use it ... And did you gave it already a try?


Re: Top 5 Kills as Textdraw - iggy1 - 25.08.2011

You will have trouble getting the top 5 from userfiles using anything apart from sql. (unless you have all users in one file, which isn't a good idea)


AW: Top 5 Kills as Textdraw - Zcelo12 - 25.08.2011

So let's make it like when they are connected. It will saved in a variable called Player[playerid][Kills],
and yes i gave it a try but i can only do it for the most Kills for one Player.

edit: TextDraw:
Код:
T5Kills = TextDrawCreate(507.000000, 102.000000," ");
        TextDrawBackgroundColor(T5Kills, COLOR_BLACK);
 	TextDrawFont(T5Kills, 3);
 	TextDrawLetterSize(T5Kills, 0.5,1.5);
 	TextDrawAlignment(T5Kills,0);
 	TextDrawColor(T5Kills, COLOR_LIGHTBLUE);
 	TextDrawSetOutline(T5Kills, 2);
 	TextDrawSetShadow(T5Kills, 0);