thryckz 1 Posted January 2, 2013 I am making an action-menu based admin script for my Zargabad Life server ( I do not know C++ by heart so making a a gui is out of the question). Here is the code for the startCode.sqf _uid = getPlayerUID vehicle player; //ThRyCkz if (_uid == "uid") then { waituntil {alive player}; player removeAction acShow; acShow = player addAction ["[ADMIN] Show Commands","admin\turnOn.sqf"]; acReset = player addAction ["[ADMIN] Reset Commands","Startcode.sqf"]; waituntil {!(alive player)}; }; // BENJI :D if (_uid == "uid" then { waituntil {alive player}; player removeAction acShow; acShow = player addAction ["[ADMIN] Show Commands","admin\turnOn.sqf"]; acReset = player addAction ["[ADMIN] Reset Commands",Startcode.sqf"]; waituntil {!(alive player)}; }; // MiKELiKESDiMPLES if (_uid = "uid" then { waituntil {alive player}; player removeAction acShow; acShow = player addAction ["[ADMIN] Show Commands","admin\turnOn.sqf"]; acReset = player addAction ["[ADMIN] Reset Commands","Startcode.sqf"]; waituntil {!(alive player)}; }; This is turnOn.sqf // adds action(s) acTeleport = player addAction ["Teleport", "admin\acTeleport.sqf"]; acGod = player addAction ["God Mode", "admin\acGod.sqf"]; acSpectate = player addAction ["Spectate", "gcam.sqf"]; acMillionare = player addAction ["Set $5M", "admin\acMillionare.sqf"]; acDouble = player addAction ["Double Paycheck", "admin\acDouble.sqf"]; acCheapGang = player addAction ["Cheap Gang", "admin\acCheapGang.sqf"]; // hide menu acHide = player addAction ["Hide Commands", "admin\turnOff.sqf"]; // hint message hintc "This admin menu is created by ThRYCkz. \nDon't abuse this shit."; player removeAction acTeleport; player removeAction acGod; player removeAction acSpectate; player removeAction acMillionare; player removeAction acDouble; player removeAction acCheapGang; player removeAction acHide; I know it's really messy code, and I screwed it up even more when I tried fixing it. But what I am saying is that the actionMenu is stacking for some reason and so multiple action menu's pop up. Is there a way I can do if acHide = true then acShow = false or something. I want it so that acShow won't be showing if acHide is and vice versa. * I also know these commands are admin abuse, but I plan to add groups to the admin menu so "admins" won't have access to the much larger commands. Most commands is also for debug usage as I add stuff to the server. Share this post Link to post Share on other sites