06.06.2011, 21:46
(
Последний раз редактировалось gamer931215; 07.06.2011 в 06:14.
)
pawn Код:
//on top of your gamemode (since i think you will be updating this per vehicle, so you need a variable for EVERY vehicle)
new Text3D:V3D[MAX_VEHICLES];
//the loop on gamemodeinit/filterscriptinit where ever you want it
for(new i = 0; i < MAX_VEHICLES; i++)
{
new Float:vHealth;
GetVehicleHealth(vehicleid, vHealth);
new vhp[64];
format(vhp, sizeof(vhp), "HP: %.0f", vHealth);//first formatting and THEN inserting it into a label
V3D[i] = Create3DTextLabel(vhp,COLOR_GREEN,0,0,0,40,0,0);
Attach3DTextLabelToVehicle(V3D[i],i,0,0,1.5);
}