Jump to content

Anti Log out in combat


John_Scott

Recommended Posts

Posted

Hi,

I wrote a script for my DayZ server, witch ban player to 2 dayz, when he log out in combat.

(combat = when a player was shooted, or shoot someone)

But the code have a bug, when a client go to combat status, the server side script move everyone to combat, not only the fighters.

Can someone debug my code?

Code:

http://pastie.org/8555999

Posted

The onPlayerWasted event handler isn't attached to the function wich you marked as "not working" and the first parameter passed to the handler function of onPlayerWasted is not a player (read it's wiki page). The source is a hidden variable, it musn't be in the parameter list.

Both of these should give you an error message in debugscript so I suppose you haven't used it while debugging.

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