LazyNutta 10 Posted November 13, 2010 Hello, I am looking to make an Admin console for my admins so they can use a camera to check on cheat accusations but i don't know how to make it where you log into it useing a password. I also need it to be inplemented directly into the .pbo for the mission. Any help would be great! Share this post Link to post Share on other sites
LazyNutta 10 Posted November 13, 2010 ok so i think i am going to go the ID rout insted of passworded _uid = getPlayerUID vehicle player; if (_uid == "ID OF PLAYER HERE") then now to execute the gcam.sqf by some means like a button how do i do this? Share this post Link to post Share on other sites
rexehuk 16 Posted November 13, 2010 (edited) Addaction command. (I'll show you how to do via NAME). Firstly define an array in your init.sqf as follows: lzN_array = ["LazyNutta","Someotheradminnamehere"]; In your briefing.sqf (where I hide mine) put execVM "scriptpath\lzNutterScript.sqf"; in lzNutterScript.sqf you'd have the following: if ((name player) in lzN_array) then { _addAction1 = player addAction ["ADMIN SPECTATE", "scripts\gcam.sqf",["This"]]; }; You can adapt this to do UID if you wish, but requires a bit more work if I remember? Edited November 13, 2010 by rexehuk Share this post Link to post Share on other sites
LazyNutta 10 Posted November 13, 2010 Nice thanks alot :) i will check this out as soon as my server is back up. ---------- Post added at 04:50 PM ---------- Previous post was at 04:28 PM ---------- I would be intrested to know how i could do it useing player ID though :) Share this post Link to post Share on other sites
rexehuk 16 Posted November 13, 2010 (edited) Try this in the lzNutterScript.sqf _lzUID = (getPlayerUID vehicle player); if ((_lzUID) in lzN_array) then { _addAction1 = player addAction ["ADMIN SPECTATE", "scripts\gcam.sqf",["This"]]; }; Obviously you'd need to change the array to have IDs rather than names. Edited November 13, 2010 by rexehuk Share this post Link to post Share on other sites
LazyNutta 10 Posted November 13, 2010 ok so far i have tested the names script and it work great! only 1 problem it will only work one time lol after i press space and click exit Gcam i no longer have the option from the menu to go back into Gcam. Share this post Link to post Share on other sites
rexehuk 16 Posted November 13, 2010 You'll have to add the action on exit from gCAM, you could just execVM "scriptpath\lzNutterScript.sqf"; again and it should readd. This means editing the gCam script obviously. Share this post Link to post Share on other sites
LazyNutta 10 Posted November 13, 2010 umm ok didnt change anything and it is working find now lol thanks for your help :) Share this post Link to post Share on other sites