Jump to content

Server-sided ped damage?


FuriouZ

Recommended Posts

Posted

Server-side sucks for these things, why don't you use client-side?

what can be done (working at 80%) server-side:

addEventHandler('onPlayerDamage',getRootElement(),function(attacker, attackerweapon, bodypart, loss) 
setElementHealth(source,getElementHealth(source) + loss) 
end) 

won't work at some cases + incorrect working on lagg occasion.

Powered by Kimsufi©

n-560x95_FFFFFF_FFFFFF_000000_000000.png

ZHP on FacebookZHP on YoutubeSupport us

Posted

Of course you can't cancel the damage that has already been done. You can't prevent the event from having occurred because you can't change the past. This is the case with server-side damage events, they are triggered after the ped/player was damaged.

-

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