Horbin

setdamage killing you in godmode

5 posts in this topic

Anyone know the flag under infi-star and the safe zones?

I need to check these flags to prevent setdamage from killing players who are in admin/god mode or in safe zones.

Share this post


Link to post
Share on other sites

Client or server side?

For Exile Client side you can check the ExilePlayerInSafezone variable (no func, just a variable with true/false)
For Infistar Client side you can check infiSTAR_A3GodRun (0 OR nil for disabled, 1 for enabled)

For server side as far as i can tell there is no actually flag for both. You could check if the player is currently in the safezone (you can check with the built-in function "[x,y,z] call ExileClient_util_world_isInSpawnZone")

Share this post


Link to post
Share on other sites
Advertisement

Thanks, I'll see what I can do with this.

Issue I am running into is zombies running on a headless client crushing folks in safe zones and with god mode enabled :)

Share this post


Link to post
Share on other sites

[x,y,z] call ExileClient_util_world_isInSpawnZone should be the right thing. can be used on the headless without problems. I would consider adding a check for (isObjectHidden _player) so no admins in stealth mode get chased/attacked.

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

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.