17.04.2012, 15:01
o codigo й este
cm vcґs veem,й em gametext... mas eu queria meter entao em text draw e a se actualizar 1s em 1s, tambem queria-o "as texts draw" num sitio especifico. se me puder ajudar (nao compreendi o code)
pawn Код:
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);
}
}
}
}