Sandbird Posted March 27, 2014 Report Share Posted March 27, 2014 To allow admins to manually start events. Something like this:Spawning event: server_adminspawnEvent = compile preprocessFileLineNumbers '\z\addons\dayz_server\compile\server_adminspawnEvent.sqf'; ['mycustomEvent'] spawn server_adminspawnEvent; server_adminspawnEvent.sqf private ["_date","_key","_result","_outcome","_handle","_datestr","_event"]; diag_log("MANUAL EPOCH EVENT INIT"); _event = _this select 0; while {true} do { _key = "CHILD:307:"; _result = _key call server_hiveReadWrite; _outcome = _result select 0; if(_outcome == "PASS") then { _date = _result select 1; _datestr = str(_date); diag_log ("RUNNING EVENT: " + (_event) + " on " + _datestr); _handle = [] execVM "\z\addons\dayz_server\modules\" + (_event) + ".sqf"; }; sleep 10; }; If its not too much to ask.... xBowBii 1 Link to comment Share on other sites More sharing options...
ruubje11 Posted March 27, 2014 Report Share Posted March 27, 2014 +1 as well! Would be so useful! Link to comment Share on other sites More sharing options...
peipo118 Posted March 27, 2014 Report Share Posted March 27, 2014 Ye that would be cool.. I have kind of coded it together myself with Infistars tools but it would be a thing that should be in by default Link to comment Share on other sites More sharing options...
Sandbird Posted March 27, 2014 Author Report Share Posted March 27, 2014 Ye that would be cool.. I have kind of coded it together myself with Infistars tools but it would be a thing that should be in by default How did you manage to execute the script in infistar ? I was trying to do it with my code above but the script is in the dayz_server.pbo while infistar executes commands on client. I always get script not found. Link to comment Share on other sites More sharing options...
Sandbird Posted March 27, 2014 Author Report Share Posted March 27, 2014 Thats the only way to do it...with publicvariableserver command....but no simple example out there to do just that....execute a script on the server. Link to comment Share on other sites More sharing options...
Halvhjearne Posted March 28, 2014 Report Share Posted March 28, 2014 foamysworld made something like this quite a while ago, idk why you arent just using that Sandbird 1 Link to comment Share on other sites More sharing options...
Sandbird Posted March 28, 2014 Author Report Share Posted March 28, 2014 proof or it doesnt exist :D lol Cant find it...what do you mean ? If you mean this: then you need to read the 1st post again. Events cannot be manually executed from the Client cause the file is in the dayz_server and the spawn script doesnt take any parameters the way it is. We have to use publicvariableserver tricks to make it work....so why go through all this trouble...when the script could be manipulated to accept parameters OR just add a new spawn event script instead. Link to comment Share on other sites More sharing options...
Sandbird Posted March 28, 2014 Author Report Share Posted March 28, 2014 I had some clarity of thought today :P and made this: Case closed. Link to comment Share on other sites More sharing options...
peipo118 Posted March 28, 2014 Report Share Posted March 28, 2014 Sry for the late answer but yes that is what i did too :P created a new menu and used the public variables of the Antihack itself..or for those who own the extended tools it is even easier, as simple as just running it Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now