J-Guid 10 Posted October 1, 2011 WIP with JIP in progress... If somebody know how lunch twice OnPlayerConnected tell my please! (need init to JIP's) Share this post Link to post Share on other sites
.kju 3244 Posted October 1, 2011 what do you mean with twice? Share this post Link to post Share on other sites
saltatormortis 12 Posted October 4, 2011 (edited) maybe this in the init.sqf: CLIENT = false;JIP = false;if (isNull player) then{ JIP = true [] spawn { waitUntil { !(isNull player) }; CLIENT = true };}else{ CLIENT = true;};}; and each clientside script take a waitUntil { Client }; //for all clients waitUntil { Client && JIP}; // for only jip waitUntil { Client && !JIP}; // for all not jip on the front i hope i didnt messup the code.. :-) EDIT: removed additional codeparts that is not needed for the skript Edited October 8, 2011 by SaltatorMortis Share this post Link to post Share on other sites
J-Guid 10 Posted November 5, 2011 what do you mean with twice? We cant use OnPlayerConnected because this function cant run again in code if hi been start in mission init __________ init.sqf OnPlayerConnected hint bla bla bla <<<--- it works! but if again try launch OnPlayerConnected <<<--- NOT WORKS!!! We must update players list if new client connected to serv and reapply variables to new client, current new connected player not have any blocks and never recive his... Who know how correctly init new player on server and add Variable to him?!:confused: Share this post Link to post Share on other sites
.kju 3244 Posted November 5, 2011 ok a) vote http://dev-heaven.net/issues/14956 b) if you have full control over oPC/oPDC, aka no external addons to set it, you only have to design it that way to include all handling in the one definition Share this post Link to post Share on other sites
sickboy 13 Posted November 5, 2011 (edited) You can also simulate opc; if (isServer) then { "my_opc" addPublicVariableEventHandler { _data = _this select 1; /* do stuff */ }; _logic = "HeliHEmpty" createVehicle [0,0,0]; _logic setVehicleInit "my_opc = [name player,getPlayerUID player,player]; publicVariable 'my_opc'"; processInitCommands; }; We use this in CBA Edited November 5, 2011 by Sickboy Share this post Link to post Share on other sites
J-Guid 10 Posted November 21, 2011 (edited) Thanks SickBoy! Who wish make little assist we in this project? - find solution, how set blocks to new (connected) player - return blocks to respawned player - make ControlMarkerPlacingOnMap To Nou and Janus: Guys, please assist with finish current issues(maby know and ask solutions how do) and integrate acm in acre ;) Edited November 21, 2011 by J-Guid Share this post Link to post Share on other sites
J-Guid 10 Posted November 23, 2011 Link to acre ticket Share this post Link to post Share on other sites
J-Guid 10 Posted December 5, 2011 I think, keep current version with fixes as standalone, works fine, clans and servers can put this addon in servers pack mod?! - Or here is source code of current new(not realised) version (need fix JIP's), who can fix this issue, he will receive a 'Gold Medal' from me :D! We no have more manpower :( Link to source: http://www.multiupload.com/I4AD1YFC5F Belive in you ;)! Share this post Link to post Share on other sites
J-Guid 10 Posted December 15, 2011 (edited) Idea - in config make ACRE required addon, and this mod dont have sence works without ACRE Edited December 16, 2011 by J-Guid Share this post Link to post Share on other sites
saltatormortis 12 Posted December 16, 2011 (edited) your addon is good for other players that want to play tactical without acre maybe dont try so hard to bound your addon to one thing.. the good think about arma is the thing you can combine every addon with nearly everything in acm_edit in line 9 is a error #acm_blobal_1 instead of #acm_global_1" Edited December 16, 2011 by SaltatorMortis Share this post Link to post Share on other sites
J-Guid 10 Posted December 16, 2011 Yes mate, maby :D, because we always work at deep night ;) Have any progress :)? Share this post Link to post Share on other sites