SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 12/06/2012, 10:28 AM   #1
lordturhan
Huge Clucker
 
lordturhan's Avatar
 
Join Date: Oct 2010
Posts: 314
Reputation: 10
Default Setting Vehicles Health More Then 1000

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.
__________________
lordturhan is offline   Reply With Quote
Old 12/06/2012, 10:43 AM   #2
RoleplayEditor
Huge Clucker
 
RoleplayEditor's Avatar
 
Join Date: May 2011
Location: At my server :P
Posts: 214
Reputation: 25
Default Re: Setting Vehicles Health More Then 1000

Setting Veh hp more then 1 k make it blow i guess
__________________
Hey
RoleplayEditor is offline   Reply With Quote
Old 12/06/2012, 10:44 AM   #3
lordturhan
Huge Clucker
 
lordturhan's Avatar
 
Join Date: Oct 2010
Posts: 314
Reputation: 10
Default Re: Setting Vehicles Health More Then 1000

It is possible.
lordturhan is offline   Reply With Quote
Old 12/06/2012, 10:47 AM   #4
Djole1337
Gangsta
 
Join Date: Apr 2012
Posts: 873
Reputation: 303
Default Re: Setting Vehicles Health More Then 1000

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

__________________
YouKnowWho
Djole1337 is offline   Reply With Quote
Old 12/06/2012, 10:52 AM   #5
NeymarJr
Big Clucker
 
NeymarJr's Avatar
 
Join Date: May 2012
Location: Crown Lane, SA
Posts: 96
Reputation: 1
Default Re: Setting Vehicles Health More Then 1000

Code:
if (strcmp("/r", cmdtext, true, 10) == 0)
	{
 		new VehicleID = GetPlayerVehicleID(playerid);
		RepairVehicle(VehicleID);
		SetVehicleHealth(VehicleID, 9999);
		return 1;
	}
__________________
I don't race for rewards or fame, I race for the fun of it.

NeymarJr is offline   Reply With Quote
Old 12/06/2012, 11:09 AM   #6
Face9000
Banned
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,351
Reputation: 190
Default Re: Setting Vehicles Health More Then 1000

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

...?
Face9000 is offline   Reply With Quote
Old 12/06/2012, 11:14 AM   #7
newbienoob
High-roller
 
newbienoob's Avatar
 
Join Date: Jan 2012
Location: Follow the moaning coming from your parents' bedroom
Posts: 1,531
Reputation: 269
Default Re: Setting Vehicles Health More Then 1000

Then you will have vehicle godmode.
__________________
Help me, please /a chat
newbienoob is offline   Reply With Quote
Old 12/06/2012, 11:16 AM   #8
lordturhan
Huge Clucker
 
lordturhan's Avatar
 
Join Date: Oct 2010
Posts: 314
Reputation: 10
Default Re: Setting Vehicles Health More Then 1000

Well i want vehicle to spawn with 3000 health.

And @newbienoob yo man
lordturhan is offline   Reply With Quote
Old 12/06/2012, 11:19 AM   #9
lordturhan
Huge Clucker
 
lordturhan's Avatar
 
Join Date: Oct 2010
Posts: 314
Reputation: 10
Default Re: Setting Vehicles Health More Then 1000

Wait i will try under OnGameModeInit

EDIT: OOps double post.
lordturhan is offline   Reply With Quote
Old 12/06/2012, 11:26 AM   #10
Hoss
Big Clucker
 
Join Date: Sep 2010
Posts: 186
Reputation: 85
Default Re: Setting Vehicles Health More Then 1000

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting for Player Health to 99 good idea? RollTi Scripting Help 11 19/04/2012 12:39 PM
Vehicles' Health PlayHard Scripting Help 3 06/12/2011 06:02 PM
Setting ID's of vehicles - SQL Derryd Scripting Help 8 10/10/2011 06:46 AM
Health and Armor not setting. Lynn Help Archive 8 23/06/2011 07:48 AM
About vehicles health JulietaZ Help Archive 12 21/09/2010 08:46 PM


All times are GMT. The time now is 05:56 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.