Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <macro.h>
- /*
- File: fn_p_openMenu.sqf
- Author: Bryan "Tonic" Boardwine
- Description:
- Opens the players virtual inventory menu
- */
- if(!alive player || dialog) exitWith {}; //Prevent them from opening this for exploits while dead.
- createDialog "playerSettings";
- disableSerialization;
- switch(playerSide) do
- {
- case west:
- {
- //Gangs
- ctrlShow[12032237,false];
- ctrlShow[1221332109,false];
- //Craft
- ctrlShow[123207,false];
- ctrlShow[20232325,false];
- if(__GETC__(life_adminlevel) < 1) then
- {
- //AdminMenu
- ctrlShow[20223233210,false];
- ctrlShow[22323021,false];
- }
- };
- case civilian:
- {
- //Wanted
- ctrlShow[1223121310,false];
- ctrlShow[200232138,false];
- //Wanted+
- ctrlShow[98032340,false];
- ctrlShow[984234230,false];
- if(__GETC__(life_adminlevel) < 1) then
- {
- //AdminMenu
- ctrlShow[20223233210,false];
- ctrlShow[22323021,false];
- }
- };
- case independent:
- {
- //Wanted
- ctrlShow[1223121310,false];
- ctrlShow[200232138,false];
- //Wanted+
- ctrlShow[98032340,false];
- ctrlShow[984234230,false];
- if(__GETC__(life_adminlevel) < 1) then
- {
- //AdminMenu
- ctrlShow[20223233210,false];
- ctrlShow[22323021,false];
- }
- };
- };
- if(__GETC__(life_adminlevel) == 1) then
- {
- };
- if(__GETC__(life_adminlevel) == 2) then
- {
- };
- [] call life_fnc_p_updateMenu;
Advertisement
Add Comment
Please, Sign In to add comment