Speedo Always dessaper
#4

pawn Код:
new string[124];
format(string,sizeof(string),"Speed: %d MPH",player_get_speed(playerid));
TextDrawSetString(Textdrawname,string);
That's how id do it.

Create the textdraw OnGameModeInit with a loop.

pawn Код:
for(new i = 0; i <MAX_PLAYERS; i++)
{
Then show it where its needed.
pawn Код:
//onplayerstatechange part

//the textdraw setstring goes here

if(newstate == PLAYER_STATE_DRIVER)
{
//   create the string here.
    TextDrawSetString(TDName,string);
    TextDrawShowForPlayer(playerid,TextDrawName);
}
Hope you understood :P
Reply


Messages In This Thread
Speedo Always dessaper - by ProjectFutureRolePlay - 03.07.2013, 14:57
Re: Speedo Always dessaper - by Vince - 03.07.2013, 15:01
Re: Speedo Always dessaper - by ProjectFutureRolePlay - 03.07.2013, 15:22
Re: Speedo Always dessaper - by DobbysGamertag - 03.07.2013, 15:59

Forum Jump:


Users browsing this thread: 1 Guest(s)