Scripting/Squirrel/Functions/Vehicle.Health: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
<pre>if (cmd == "carhp")
<pre>if (cmd == "carhp")
{
{
if ( !player.Vehicle ) MessagePlayer("You must be in a vehicle to use this command.", player );
else {
local veh = player.Vehicle;
local veh = player.Vehicle;
MessagePlayer("Your cars health is " + veh.Health + "", player);
MessagePlayer("Your car health is " + veh.Health + "", player);
}
}</pre>
}</pre>



Latest revision as of 07:53, 26 April 2019