race position counter
#7

Quote:
Originally Posted by LifeStyle
Посмотреть сообщение
I know how to. I mean this textdraw.. :P
http://wiki.sa-mp.com check out the textdraw, its pretty simple. Il explain for example(again :P)

Declarations:
pawn Код:
new text:TD_CPcount[MAX_PLAYERS];
When an race starts do this:
pawn Код:
TD_CPcount[playerid] = TextDrawCreate(xpos,ypos,"Checkpoint: 0/6"); //we use 6 cp's as example
TextDrawShowForPlayer(playerid,RD_CPcount[playerid]);
When an player enters the checkpoint do what i posted before, but instead of GameTextForPlayer use:
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
And when the player has finished the race just use:
pawn Код:
TextDrawDestroy(TD_CPcount[playerid]);
To get the right positions/making an box you can use an TextDrawEditor like this one:
http://forum.sa-mp.com/showthread.ph...TextDrawEditor
Reply


Messages In This Thread
race position counter - by LifeStyle - 29.08.2010, 16:38
Re: race position counter - by Thebest96 - 29.08.2010, 16:40
Re: race position counter - by gamer931215 - 29.08.2010, 16:45
Re: race position counter - by LifeStyle - 29.08.2010, 16:50
Re: race position counter - by Mauzen - 29.08.2010, 16:53
Re: race position counter - by LifeStyle - 29.08.2010, 16:55
Re: race position counter - by gamer931215 - 29.08.2010, 16:58
Re: race position counter - by LifeStyle - 29.08.2010, 17:02
Re: race position counter - by gamer931215 - 29.08.2010, 17:04
Re: race position counter - by Paladin - 29.08.2010, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)