Szia, ezt 1 gm-bõl vettem ki ,remélem fel tudsz belõle használni valamit.
public KocsiText()
{
new S[256], Float: elet, vehicleid, uzemanyag[50];
for(new player; player < MAX_PLAYERS; player++)
{
if(IsPlayerInAnyVehicle(player))
{
vehicleid = GetPlayerVehicleID(player);
GetVehicleHealth(vehicleid, elet);
GetVehicleHealth(vehicleid, elet);
if(elet < 300) return KocsiOff(vehicleid);
switch(vInfo[vehicleid][uZEMANYAGTIPUS])
{
case BENZIN: { uzemanyag = \"Benzin\"; }
case DIESEL: { uzemanyag = \"Diesel\"; }
}
if(vInfo[vehicleid][uZEMANYAGTIPUS] > 0)
{
format(S, sizeof(S), \"%s: ~r~%dkm/h~w~~n~%s: ~w~%d/1000~w~~n~%s: ~g~%d l~w~\", FixGameString(\"Sebesség\"), GetVehicleSpeed(vehicleid), FixGameString(\"Állapot\"), floatround(elet), uzemanyag, vInfo[vehicleid][uZEMANYAG]);
if(vInfo[vehicleid][uZEMANYAGTIPUS] != vInfo[vehicleid][uZEMANYAGTIPUSVAN]) format(S, sizeof(S), \"%s: ~y~%dkm/h~w~~n~%s: ~y~%d/1000~w~~n~N/A: ~y~%d l~w~\", FixGameString(\"Sebesség\"), GetVehicleSpeed(vehicleid), FixGameString(\"Állapot\"), floatround(elet), vInfo[vehicleid][uZEMANYAG]);
}
else
{
format(S, sizeof(S), \"%s ~y~%dkm/h~w~\", FixGameString(\"Sebesség:\"), GetVehicleSpeed(vehicleid));
}
PlayerTextDrawSetString(player, Uzemanyagtext[player], S);
}
}
return 1;
}