16.03.2017, 19:28
Quote:
Ok but I want to show the current life of the vehicle in 1000. How do I?
|
If you set the vehicle's health to 999, it'll show 999.
If you don't want to set the vehicle health to 999, remove this line:
Код:
SetVehicleHealth(id, 999.0);
EDIT: As you edited your comment, I don't know if you meant to say this, if this is not the answer you were looking for, let me know
EDIT 2:
Also, adding to my previous post:
I don't know how to explain myself regarding this, but you have to "close" the conditions so the program does not get confused:
PHP код:
if(PlayerToPoint(6.0, playerid, 992.987121,-1659.088134,14.559866) || PlayerToPoint(6.0, playerid, 992.834289,-1650.768920,14.559599) && IsPlayerInAnyVehicle(playerid))
I don't know if i'm clear, anyway close them to avoid confusion, like this:
PHP код:
if( ( PlayerToPoint(6.0, playerid, 992.987121,-1659.088134,14.559866) || PlayerToPoint(6.0, playerid, 992.834289,-1650.768920,14.559599) ) && IsPlayerInAnyVehicle(playerid))