Jump to content
Sign in to follow this  
LazyNutta

Admin Gcam

Recommended Posts

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

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

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 by rexehuk

Share this post


Link to post
Share on other sites

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

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 by rexehuk

Share this post


Link to post
Share on other sites

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×