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
Line 7: Line 7:
<pre>if (cmd == "carhp")
<pre>if (cmd == "carhp")
{
{
if ( !player.Vehicle ) MessagePlayer("You bust 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>



Revision as of 07:52, 26 April 2019