John_Scott Posted December 16, 2013 Share Posted December 16, 2013 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 Link to comment
csiguusz Posted December 16, 2013 Share Posted December 16, 2013 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now