Jump to content

[Help] Konck out script


Recommended Posts

  • create your custom animation using 3ds max
  • then use these functions for importing,replacing ect

 

  1. EngineLoadIFP load an IFP file
  2. EngineReplaceAnimation replace your customs animations with another gta animations

 

  • you can do the knock out using these functions :

  1. OnClientPlayerDamage when the player damaged
  2. GetElementHealth check if his health < 10 so set his health to 100 for the knock out health
  3. SetPedAnimation set the animation to him
  4. SetTimer make timer for decreasing his health by getElementHealth - 10
  5. SetElementHealth change the player health

 

  • if you want to make a revive system you need these functions :

 

  1. GetDistanceBetweenPoints3D get the distance between two 3 dimensional points
  2. BindKey bind a key
  3. SetTimer make a timer for revive the player or make your custom progress bar
  4. SetPedAnimation to let the player move freely again
  5. SetElementHealth change the player health to 75% or any value you want
  6. KillTimer to kill any existing timers.

 

hope i helped you !

Link to comment

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...