SA-MP Forums Archive
Setting Vehicles Health More Then 1000 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Setting Vehicles Health More Then 1000 (/showthread.php?tid=350379)



Setting Vehicles Health More Then 1000 - lordturhan - 12.06.2012

Hi in some server i saw scripter's setting vehicles health more then 1000 (Full) i want to double that i want vehicles health to be doubled.


Re: Setting Vehicles Health More Then 1000 - RoleplayEditor - 12.06.2012

Setting Veh hp more then 1 k make it blow i guess


Re: Setting Vehicles Health More Then 1000 - lordturhan - 12.06.2012

It is possible.


Re: Setting Vehicles Health More Then 1000 - Djole1337 - 12.06.2012

Quote:
Originally Posted by RoleplayEditor
View Post
Setting Veh hp more then 1 k make it blow i guess
I don't think so.




Re: Setting Vehicles Health More Then 1000 - NeymarJr - 12.06.2012

Code:
if (strcmp("/r", cmdtext, true, 10) == 0)
	{
 		new VehicleID = GetPlayerVehicleID(playerid);
		RepairVehicle(VehicleID);
		SetVehicleHealth(VehicleID, 9999);
		return 1;
	}



Re: Setting Vehicles Health More Then 1000 - Face9000 - 12.06.2012

pawn Code:
new VehicleID = GetPlayerVehicleID(playerid);
SetVehicleHealth(VehicleID, Number_of_Hp_you_want);
...?


Re: Setting Vehicles Health More Then 1000 - newbienoob - 12.06.2012

Then you will have vehicle godmode.


Re: Setting Vehicles Health More Then 1000 - lordturhan - 12.06.2012

Well i want vehicle to spawn with 3000 health.

And @newbienoob yo man


Re: Setting Vehicles Health More Then 1000 - lordturhan - 12.06.2012

Wait i will try under OnGameModeInit

EDIT: OOps double post.


Re: Setting Vehicles Health More Then 1000 - Hoss - 12.06.2012

pawn Code:
CMD:carhp(playerid,params[])
{
new VehicleID = GetPlayerVehicleID(playerid);
RepairVehicle(vehicleID);
SetVehicleHealth(vehicleid,3000);
return 1;
}