14.09.2013, 08:00
Eu tou tentando fazer com que a TextDraw do combustivel quando o player sai do veiculo ela desaparecer, mas ela nгo some..
pawn Код:
public OnFilterScriptInit()
{
himessage = TextDrawCreate(547.000000, 435.000000, "");
TextDrawAlignment(himessage, 2);
TextDrawLetterSize(himessage, 0.230000, 0.899999);
return 1;
}
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new newtext[200];
format(newtext, sizeof(newtext), "Combustivel: %d", floatround(Fuel[vehicleid]));
TextDrawSetString(himessage, newtext);
TextDrawShowForPlayer(playerid, himessage);
return 1;
}
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
TextDrawDestroy(himessage);
return 1;
}