29.08.2010, 16:58
http://wiki.sa-mp.com check out the textdraw, its pretty simple. Il explain for example(again :P)
Declarations:
When an race starts do this:
When an player enters the checkpoint do what i posted before, but instead of GameTextForPlayer use:
And when the player has finished the race just use:
To get the right positions/making an box you can use an TextDrawEditor like this one:
http://forum.sa-mp.com/showthread.ph...TextDrawEditor
Declarations:
pawn Код:
new text:TD_CPcount[MAX_PLAYERS];
pawn Код:
TD_CPcount[playerid] = TextDrawCreate(xpos,ypos,"Checkpoint: 0/6"); //we use 6 cp's as example
TextDrawShowForPlayer(playerid,RD_CPcount[playerid]);
pawn Код:
//that counter +1 etc (check my other post)
//prepare string with format (dejavu... check other post)
TextDrawSetString(TD_CPcount[playerid],string); //this is the important part, this will update the textdraw
pawn Код:
TextDrawDestroy(TD_CPcount[playerid]);
http://forum.sa-mp.com/showthread.ph...TextDrawEditor