Jump to content

300 hp for ped?


capitanazop

Recommended Posts

Posted

hi i tried to set the hp of ped to 300 but only can 100, exist another way for make this?

here my script, work when set the hp to 70 ,10, 5, but not whit values than 100.

setTimer( setElementHealth, 1000, 1, pedmision1, 3000 )

Bye and sorry for my english :mrgreen:

sig.php?id=4217ℑ=4

|||||||||||||||||||||DanieloX|||||||||||||||||||||||

cod4-06.png

Posted

If it were me, I'd make a variable for the ped's health, hook up the damage events to subtract from the variable and set the ped's health in accordance. (current * 100/max)

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted
I think 200 hp is the maximum in GTA SA.

Irrelevant if you use my suggestion. You could have a ped with thousands of HP. ;)

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...