Jump to content

player sync


IIYAMA

Recommended Posts

  • Moderators

How can I disable specific synced player data?

Like health, armor or oxygen.

I only want the player to sync this for him self.

Will this disable the player health sync? (by cancel health changes)

addEventHandler ( "onClientPlayerDamage", localPlayer, 
function  attacker, weapon, bodypart ) 
    cancelEvent()  
end) 
  

or will there still be send loss data?

Link to comment

They will stop lose health but still can be killed if he/she in car and car blowed or can be killed by stealth kill(knife,katana)

addEventHandler("onClientPlayerDamage", localPlayer, 
    function(attacker, weapon, bodypart, loss) 
        cancelEvent() 
    end 
) 

so for Stealth kill you can use

addEventHandler("onClientPlayerStealthKill", localPlayer, 
    function (targetPlayer) 
        cancelEvent() 
    end 
) 

Link to comment
  • Moderators

Thx skipper

But I am talking about bandwidth reduction. (manually)

Like as sample:

1. I got hit by a bullet

2. my health got changed

3. Another player can see my new health.

I want to disable those sneaky streamed data. In my opinion this must be optional.

Health, armor, oxygen, rotation, position, movement, choking,  etc. 

I think I will make a request topic about this.

Link to comment

I think that you can't disable it since it's default from GTA, anyways, it's always synced by the server.

And why would you disable those things?..

It's always so less data, and btw; you are always in panic about data, wtf dude? MTA is synced enough, even that, the bandwidth usage is very low....

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