norrin 9 Posted March 16, 2007 Been playing around with this a bit and no matter how I try and implement it I just can't seem to make it work. Â So far I've tried it in the init line of units, the init.sqs and .sqf files all to no avail. Â Does anybody have any suggestions on how it works as I need it to get around some JIP probs with my scripts? Share this post Link to post Share on other sites
snkman 351 Posted March 16, 2007 I would like to know something about it too. Share this post Link to post Share on other sites
5133p39 16 Posted March 16, 2007 i guess you would want to read this then? <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">onPlayerConnected "[_id,_name] Spawn some_script"; Share this post Link to post Share on other sites
norrin 9 Posted March 16, 2007 Thanks for the suggestion but I've already tried that. There's also a thread in the forums  here which goes into a little more detail about the onPlayerConnected cmd. Maybe I'm wrong but as far as I can tell it doesn't help with  the onPlayerDisconnected cmd 'cause it seems to be implemented slightly differently. The big question is what file do you put it in that will trigger the cmd when the player leaves. Share this post Link to post Share on other sites
5133p39 16 Posted March 17, 2007 The big question is what file do you put it in that will trigger the cmd when the player leaves. sorry, i don't understand this sentence. Could you please explain? Share this post Link to post Share on other sites
norrin 9 Posted March 17, 2007 I guess what I need to know is how do you make this command execute. For instance do you put it in the init.sqs and it runs when the player joins the server and then waits in memory until the player leaves the server before it executes or do you place it in the "init line" of the unit in the editor? I've tried both so far as well as quite a few other things as well and I can't get it to work. Share this post Link to post Share on other sites