17.07.2015, 03:13
Alright so I have made a vradar but it does not display the speed of the vehicle in front and the model that it is, it does show the textdraws tho.
Код:
new string[128], vehicleid; vehicleid = GetClosestVehicle(playerid, 20); TextDrawShowForPlayer(playerid, RadarHud); TextDrawShowForPlayer(playerid, RadarHud1); // Vehicle Speed new speed = GetVehicleSpeed(vehicleid, 20); format(string, sizeof(string), "Speed: %d KM/H", speed); TextDrawSetString(RadarHud2, string); TextDrawShowForPlayer(playerid, RadarHud2); // Vehicle Model new vehmd = GetVehicleModel(vehicleid); format(string, sizeof(string), "Vehicle: %s", RVN(vehmd)); TextDrawSetString(RadarHud3, string); TextDrawShowForPlayer(playerid, RadarHud3);