11.02.2011, 22:34
I have maked this:
But textdraw show until take a car and freeze without it set the string
ExitCar = destroycar / kill STimer ~
pawn Код:
forward UpdateSpeed(playerid);
public UpdateSpeed(playerid)
{
KillTimer(UTimer[playerid]); //Utimer = UpdateSpeed timer
STimer[playerid] = SetTimerEx("SpeedoSetString", 250, true, "i", playerid);
//}
}
pawn Код:
stock SpeedoSetString(playerid)
{
//SpeedoMeter getplayerping, velocity .. again, and not creat textdraw just for SetString
TextDrawSetString(Speedo[playerid], S_string);
return TextDrawShowForPlayer(playerid, Speedo[playerid]);
//}
}
ExitCar = destroycar / kill STimer ~