Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Float:health;
- new car = GetPlayerVehicleID(playerid);
- if(IsPlayerInAnyVehicle(playerid)==1)
- format(String, 250,"%.2f",GetVehicleHealth(car, health));
- Textdrawcar = TextDrawCreate(491.000000, 322.000000, String);
- TextDrawBackgroundColor(Textdrawcar, 255);
- TextDrawFont(Textdrawcar, 2);
- TextDrawLetterSize(Textdrawcar, 0.500000, 1.000000);
- TextDrawColor(Textdrawcar, 1367916799);
- TextDrawSetOutline(Textdrawcar, 0);
- TextDrawSetProportional(Textdrawcar, 1);
- TextDrawSetShadow(Textdrawcar, 1);
- TextDrawShowForPlayer(playerid,Textdrawcar);
- if(IsPlayerInAnyVehicle(playerid)==0) return TextDrawDestroy(Textdrawcar);
Advertisement
Add Comment
Please, Sign In to add comment