Speedometer/GPS/Wristwatch bug
#2

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:
pawn Код:
if(newstate == PLAYER_STATE_DRIVE || PLAYER_STATE_PASSENGER)
{
             TextDrawShowForPlayer(playerid, sidisplay[playerid]);
}
else
{
             TextDrawHideForPlayer(playerid, sidisplay[playerid]);
}
return 1;
and OnPlayerExitVehicle, Hide it
Reply


Messages In This Thread
Speedometer/GPS/Wristwatch bug - by Lunixx - 30.01.2014, 12:10
Re: Speedometer/GPS/Wristwatch bug - by Sawalha - 30.01.2014, 12:25
Re: Speedometer/GPS/Wristwatch bug - by CuervO - 30.01.2014, 12:29
Re: Speedometer/GPS/Wristwatch bug - by Lunixx - 30.01.2014, 12:40

Forum Jump:


Users browsing this thread: 1 Guest(s)