17.04.2012, 14:24
Ola malta,tem como eu mudar o tamanho da letra do GameTextForPlayer??
tipo,eu tenho em gametext a dizer "Velocidade: (e aki a velocidade)" so que a gametext da para actualizar segundo em segundo,mas no text draw nгo dб (ou dб?)
/ Tem alguma text draw que se actualize? |
if(ShowFuel[i] && GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new form[128];
new vehicle = GetPlayerVehicleID(i);
new Float: Speed;
Speed = GetSpeed(i);
if(!OutOfFuel[i])
{
if(Fuel[vehicle] <= 25)
{
if(EngineStatus[vehicle])
{
if(Speed == 0)
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~n~~w~Motor:~b~Ligado~n~~w~Gasolina:~b~ %d%~n~~r~Gasolina na reserva~n~~w~Velocidade:~b~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,3);
}
else if(IsVehicleDrivingBackwards(vehicle))
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~n~~w~Motor:~b~Ligado~n~~w~Gasolina:~b~ %d%~n~~r~Gasolina na reserva~n~~w~Velocidade:~b~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,3);
}
else if(Speed > 0)
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~n~~w~Motor:~b~Ligado~n~~w~Gasolina:~b~ %d%~n~~r~Gasolina na reserva~n~~w~Velocidade:~b~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,3);
}
}
else
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~n~~w~Motor:~r~Desligado~n~~w~Gasolina:~b~ %d%~n~~r~Gasolina na reserva~n~~w~Velocidade:~b~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,3);
}
}
else
{
if(EngineStatus[vehicle])
{
if(Speed == 0)
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~n~~w~Motor:~b~Ligado~n~~w~Gasolina:~b~ %d%~n~~w~Velocidade:~b~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,3);
}
else if(IsVehicleDrivingBackwards(vehicle))
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~n~~w~Motor:~b~Ligado~n~~w~Gasolina:~b~ %d%~n~~w~Velocidade:~b~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,3);
}
else if(Speed > 0)
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~n~~w~Motor:~b~Ligado~n~~w~Gasolina:~b~ %d%~n~~w~Velocidade:~b~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,3);
}
}
else
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~n~~n~~w~Motor:~r~Desligado~n~~w~Gasolina:~b~ %d%~n~~w~Velocidade:~b~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,3);
}
}
}
}