SA-MP Forums Archive
Scoreboard - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Scoreboard (/showthread.php?tid=258284)



Scoreboard - 0_o - 29.05.2011

hi guys, So im Making a New GangWar Server And I Wanna Know How Can I Display the ScoreBoard with Player Scores & names In Light Red colour At the Left Middle Angle, Can Anyone Help ME?


Re: Scoreboard - Cenation - 31.05.2011

Create Text Draw there....
with functions u want...


Re: Scoreboard - 0_o - 31.05.2011

Quote:
Originally Posted by Cenation
Посмотреть сообщение
Create Text Draw there....
with functions u want...
That's The big Problem My Rank in TextDraws is newbie


Re: Scoreboard - 0_o - 31.05.2011

Got This From BSN TextDrawCreate(15 ,191


Re: Scoreboard - Sasino97 - 31.05.2011

I'm sorry, I can't make the full script because I have to go in a few minutes...... Bye


Re: Scoreboard - 0_o - 31.05.2011

Can Anyone Help Me Please? I'm newbie in textdraws


Re: Scoreboard - 0_o - 01.06.2011

I MAde all The Textdraws, how can i add player names and scores there now? here are my textdraws :
pawn Код:
Textdraw6 = TextDrawCreate(28.000000, 169.000000, "1.Name   Score : 0");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.360000, 1.100000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 0);
TextDrawSetProportional(Textdraw6, 1);
TextDrawSetShadow(Textdraw6, 1);


Textdraw7 = TextDrawCreate(28.000000, 180.000000, "2.Name   Score : 0");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 1);
TextDrawLetterSize(Textdraw7, 0.350000, 1.100000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 0);
TextDrawSetProportional(Textdraw7, 1);
TextDrawSetShadow(Textdraw7, 1);


Textdraw8 = TextDrawCreate(28.000000, 191.000000, "3.Name   Score : 0");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.350000, 1.100000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);


Textdraw9 = TextDrawCreate(28.000000, 202.000000, "4.Name   Score : 0");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 1);
TextDrawLetterSize(Textdraw9, 0.350000, 1.100000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 0);
TextDrawSetProportional(Textdraw9, 1);
TextDrawSetShadow(Textdraw9, 1);


Textdraw10 = TextDrawCreate(28.000000, 213.000000, "5.Name   Score : 0");
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 1);
TextDrawLetterSize(Textdraw10, 0.350000, 1.100000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);



Re: Scoreboard - Biesmen - 01.06.2011

Well, first of all the advice Sasino gave you use advice I advice you not to use. (lol).
Why would you make a new textdraw for 5 ranks? Why not one textdraw?
pawn Код:
Textdraw6 = TextDrawCreate(28.000000, 169.000000, "_");
And when the scoreboard displays:
pawn Код:
new stuff[128];
format(stuff, sizeof(stuff), "~n~%d. %s      Score: %d", i, name, score);
Define name and score yourself.

For the "i", use quicksort.
Create the quicksort function or try to find one.

Nevemrind, I found one for you.
Quicksort function created by Ryder`. He even made a script for you to show the top5, what do you need more?
http://forum.sa-mp.com/showpost.php?...2&postcount=44

Good luck.


Re: Scoreboard - 0_o - 01.06.2011

Quote:
Originally Posted by Biesmen
Посмотреть сообщение
Well, first of all the advice Sasino gave you use advice I advice you not to use. (lol).
Why would you make a new textdraw for 5 ranks? Why not one textdraw?
pawn Код:
Textdraw6 = TextDrawCreate(28.000000, 169.000000, "_");
And when the scoreboard displays:
pawn Код:
new stuff[128];
format(stuff, sizeof(stuff), "~n~%d. %s      Score: %d", i, name, score);
Define name and score yourself.

For the "i", use quicksort.
Create the quicksort function or try to find one.

Nevemrind, I found one for you.
Quicksort function created by Ryder`. He even made a script for you to show the top5, what do you need more?
http://forum.sa-mp.com/showpost.php?...2&postcount=44

Good luck.
Take a look at this


And This



AW: Scoreboard - Nero_3D - 01.06.2011

Just take ryder's script and change the textdraw part
For your scoreboard you need one textdraw per column since there is no tab support in textdraws if I remember correctly
And the first textdraw, mostly the playerid has the box, the size just need to be set big enough

I would use the famous textdraw editor to create them
The rest should be quite easy