Guest User

Untitled

a guest
Nov 17th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3. File: fn_p_openMenu.sqf
  4. Author: Bryan "Tonic" Boardwine
  5.  
  6. Description:
  7. Opens the players virtual inventory menu
  8. */
  9. if(!alive player || dialog) exitWith {}; //Prevent them from opening this for exploits while dead.
  10. createDialog "playerSettings";
  11. disableSerialization;
  12.  
  13. switch(playerSide) do
  14. {
  15. case west:
  16. {
  17. //Gangs
  18. ctrlShow[12032237,false];
  19. ctrlShow[1221332109,false];
  20.  
  21. //Craft
  22. ctrlShow[123207,false];
  23. ctrlShow[20232325,false];
  24.  
  25. if(__GETC__(life_adminlevel) < 1) then
  26. {
  27. //AdminMenu
  28. ctrlShow[20223233210,false];
  29. ctrlShow[22323021,false];
  30. }
  31. };
  32.  
  33. case civilian:
  34. {
  35. //Wanted
  36. ctrlShow[1223121310,false];
  37. ctrlShow[200232138,false];
  38.  
  39. //Wanted+
  40. ctrlShow[98032340,false];
  41. ctrlShow[984234230,false];
  42.  
  43. if(__GETC__(life_adminlevel) < 1) then
  44. {
  45. //AdminMenu
  46. ctrlShow[20223233210,false];
  47. ctrlShow[22323021,false];
  48. }
  49. };
  50.  
  51. case independent:
  52. {
  53.  
  54. //Wanted
  55. ctrlShow[1223121310,false];
  56. ctrlShow[200232138,false];
  57.  
  58. //Wanted+
  59. ctrlShow[98032340,false];
  60. ctrlShow[984234230,false];
  61.  
  62. if(__GETC__(life_adminlevel) < 1) then
  63. {
  64. //AdminMenu
  65. ctrlShow[20223233210,false];
  66. ctrlShow[22323021,false];
  67. }
  68. };
  69. };
  70.  
  71. if(__GETC__(life_adminlevel) == 1) then
  72. {
  73. };
  74.  
  75. if(__GETC__(life_adminlevel) == 2) then
  76. {
  77. };
  78.  
  79. [] call life_fnc_p_updateMenu;
Advertisement
Add Comment
Please, Sign In to add comment