Tranformar em txdraw. -
pawn Код:
if(ShowFuel[i] && GetPlayerState(i) == PLAYER_STATE_DRIVER)
{
new form[128];
new vehicle = GetPlayerVehicleID(i);
if(!OutOfFuel[i])
{
if(Fuel[vehicle] <= 25)
{
if(EngineStatus[vehicle])
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~y~Motor a trabalhar.~n~~w~Gasolina:~g~ %d%~n~~r~deposito na reserva.~n~~w~Velocidade:~g~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
else
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~y~Motor desligado.~n~~w~Gasolina:~g~ %d%~n~~r~deposito na reserva.~n~~w~Velocidade:~g~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
}
else
{
if(EngineStatus[vehicle])
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~y~Motor a trabalhar.~n~~w~Gasolina:~g~ %d%~n~~w~Velocidade:~g~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
else
{
format(form, sizeof(form), "~w~~n~~n~~n~~n~~n~~y~Motor desligado.~n~~w~Gasolina:~g~ %d%~n~~w~Velocidade:~g~ %dKm/h",Fuel[vehicle],GetSpeedKM(i));
GameTextForPlayer(i,form,1000,5);
}
}
}
}
Re: Tranformar em txdraw. -
Re: Tranformar em txdraw. -
pawn Код:
new text:newmotor[17];
new text:newgasolina[9];
new text:newkm[5];
public OnGameModeInit()
{
newmotor = TextDrawCreate(1.0, 5.6, " ");
newgasolina = TextDrawCreate(1.0, 5.6, " ");
newkm = TextDrawCreate(1.0, 5.6, " ");
return 1;
}
Omg, nгo percebo nada de nada .... explica me por favor. nao quero que faзas sem me explicares.