24.02.2014, 22:30
Try to hide the Loggin TD when TDFuel is called .
// If not works , tell me !
pawn Код:
if (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
{
new vid = GetPlayerVehicleID(playerid);
for( new i = 0; i < 12; i++ )
{
TextDrawHideForPlayer(playerid, MainMenuTextdraw[i])
}
new string[125];format(string,sizeof string,"Fuel:%i",fuel[vid]); //quickly doing a small update on fuel (so it wont jump from 100 to its real value)
TextDrawSetString(td_fuel[playerid],string);
TextDrawShowForPlayer(playerid,td_fuel[playerid]); //showing if an player is a driver or passenger of the ar
} else {
TextDrawHideForPlayer(playerid,td_fuel[playerid]);
TextDrawShowForPlayer(playerid, TDLogin etc...); //hiding if a player isnt driving/or an passenger
}