30.01.2014, 12:25
Wrong, You should create the speed meter when a player enters the vehicle, but showing it when checking if he's driver or passenger if you want, At OnPlayerStateChange:
and OnPlayerExitVehicle, Hide it
pawn Код:
if(newstate == PLAYER_STATE_DRIVE || PLAYER_STATE_PASSENGER)
{
TextDrawShowForPlayer(playerid, sidisplay[playerid]);
}
else
{
TextDrawHideForPlayer(playerid, sidisplay[playerid]);
}
return 1;