[HELP] How to get this type of thing? - 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: [HELP] How to get this type of thing? (
/showthread.php?tid=570449)
[HELP] How to get this type of thing? -
fuckingcruse - 10.04.2015
I made a small type of side job , i made 60 cp , can anyone say me how to get this?

Like if player enter his checkpoint , he get 1/60 , 2nd cp 2/60 , and so on.. can anyone help?
AW: [HELP] How to get this type of thing? -
Mencent - 10.04.2015
Hello!
That is an textdraw. You can do this with this:
https://sampforum.blast.hk/showthread.php?tid=543002
If you have problems you are able to ask them.
Mencent
Re: [HELP] How to get this type of thing? -
R0 - 10.04.2015
Well,since you made it as a textdraw,then change the number in the string,like:
pawn Код:
//add these up in the gamemode
new checkpointamount[MAX_PLAYERS];
new Text:CheckpointTextdraw;
//onplayerconnect,create the textdraw:
CheckpointTextdraw = TextDrawCreate(..........)//put your coords...same as you created it in the photo
//put this when he enters a checkpoint from the 60 checkpoint :
checkpointamount[playerid]++;
//update the string of the textdraw:
new string[28];
format(string, sizeof string, "CheckPoint %d / 60", checkpointamount[playerid]);
TextDrawSetString(CheckpointTextdraw, string);