Setting Vehicles Health More Then 1000
#1

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.
Reply
#2

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

It is possible.
Reply
#4

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

Reply
#5

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

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

Then you will have vehicle godmode.
Reply
#8

Well i want vehicle to spawn with 3000 health.

And @newbienoob yo man
Reply
#9

Wait i will try under OnGameModeInit

EDIT: OOps double post.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)