SA-MP Forums Archive
[help] Createing On screen scores.. - 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: [help] Createing On screen scores.. (/showthread.php?tid=106935)



[help] Createing On screen scores.. - Mowgli - 07.11.2009

Im not too bad at scripting but ive never worked with this stuff...

basicly i want to textdraw so that i can set the scores for my server on the screen. is there any tutorials for textdraw's? or somone can tell me wat i gota do


Re: [help] Createing On screen scores.. - Abernethy - 07.11.2009

It's pretty simple. Just make the string like format(string, sizeof(string), "Score: %d", GetPlayerScore(playerid)); & use TextDrawSetString(Textdraw, string);


Re: [help] Createing On screen scores.. - miokie - 07.11.2009

Use Zamaroht's Textdraw creator filterscript (Search for it)

Define the Textdraw to the player aswell so It shows Your own score, not somebody elses:

example:
pawn Код:
new Text:Textdraw[MAX_PLAYERS];
pawn Код:
Textdraw[playerid] = TextDrawCreate(...);
TextDrawUseBox(Textdraw[playerid],1);