Scoreboard
#1

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?
Reply
#2

Create Text Draw there....
with functions u want...
Reply
#3

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

Got This From BSN TextDrawCreate(15 ,191
Reply
#5

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

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

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);
Reply
#8

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.
Reply
#9

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
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)