Hey I need my fuel, lights and engine in a textdraw like I have the information if I do /car status but I want it in a constant textdraw here is the information:
Код:
else if(strcmp(params, "status", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
new engine,lights,alarm,doors,bonnet,boot,objective,enginestatus[4],lightstatus[4], string[48];
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510) return SendClientMessageEx(playerid,COLOR_RED,"This vehicle doesn't need fuel.");
if(engine != VEHICLE_PARAMS_ON) format(enginestatus, sizeof(enginestatus), "OFF");
else format(enginestatus, sizeof(enginestatus), "ON");
if(lights != VEHICLE_PARAMS_ON) format(lightstatus, sizeof(lightstatus), "OFF");
else format(lightstatus, sizeof(lightstatus), "ON");
format(string, sizeof(string), "Engine: %s | Lights: %s | Fuel: %.2f.",enginestatus,lightstatus,VehicleFuel[vehicleid]);
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
return 1;
}
Whoever could make me a Textdraw Just by the minimap would be great and I would +rep them
This is easy, all you have to do is create some Per-Player textdraws, then update it with car informations.