revv 15 Posted April 12, 2016 Hello I am having difficulty working out how to detect if a player has been on my server and if they have execute some script else execute other script.Anyone know the proper procedure for this? I know it has to do with getPlayerUID but I can't work it out Share this post Link to post Share on other sites
NeoArmageddon 958 Posted April 12, 2016 Hello I am having difficulty working out how to detect if a player has been on my server and if they have execute some script else execute other script. Anyone know the proper procedure for this? I know it has to do with getPlayerUID but I can't work it out Use initPlayerServer.sqf (https://community.bistudio.com/wiki/Event_Scripts) and use https://community.bistudio.com/wiki/getPlayerUID on the first object passed to that script. Share this post Link to post Share on other sites
revv 15 Posted April 12, 2016 Hello I am having difficulty working out how to detect if a player has been on my server and if they have execute some script else execute other script. Anyone know the proper procedure for this? I know it has to do with getPlayerUID but I can't work it out Use initPlayerServer.sqf (https://community.bistudio.com/wiki/Event_Scripts) and use https://community.bistudio.com/wiki/getPlayerUID on the first object passed to that script. I'm sorry but I don't understand can you be a little more specific please? Which part of my scripts am I to put in there? Share this post Link to post Share on other sites
ASiberianHusky 1 Posted April 12, 2016 initPlayerServer.sqf Executed only on server when a player joins mission (includes both mission start and JIP). See initialization order for details about when the script is exactly executed. [player:Object, didJIP:Boolean] Share this post Link to post Share on other sites
sarogahtyp 1108 Posted April 12, 2016 I'm sorry but I don't understand can you be a little more specific please? Which part of my scripts am I to put in there? a helper can only be as specific as u r with ur topic... Share this post Link to post Share on other sites
revv 15 Posted April 12, 2016 initPlayerServer.sqf Executed only on server when a player joins mission (includes both mission start and JIP). See initialization order for details about when the script is exactly executed. [player:Object, didJIP:Boolean] a helper can only be as specific as u r with ur topic... Thanks both of you for the reply, I finally got it working but sarogahtyp I said in my first post I didn't know the procedure which means I didn't know which commands to use our how to execute them. I eventually stumbled onto another post with some example code on methods for this sort of thing and after some tinkering I figured it out ;) Share this post Link to post Share on other sites