Jump to content
Sign in to follow this  
norrin

onPlayerDisconnected

Recommended Posts

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

I would like to know something about it too. smile_o.gif

Share this post


Link to post
Share on other sites

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

Thanks for the suggestion smile_o.gif 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
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

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

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×