Advertisement
Guest User

asdfasddrdd

a guest
Nov 24th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. private ["_action","_id","_player","_sl","_m","_g","_r","_ar","_p","_at","_c"];
  2. if (!local player) exitwith {};
  3.  
  4. _player = _this select 1;
  5. _id = _this select 2;
  6. _action = _this select 3;
  7.  
  8. _sl =["O_Soldier_SL_F","O_Soldier_F","O_officer_F"];
  9. _tl =["O_Soldier_SL_F","O_Soldier_TL_F","O_Soldier_F","O_officer_F"];
  10. _m =["O_Soldier_SL_F","O_medic_F"];
  11. _g =["O_Soldier_SL_F","O_Soldier_GL_F","O_Soldier_F","O_officer_F"];
  12. _r =["O_Soldier_SL_F","O_Soldier_F","O_engineer_F","O_officer_F"];
  13. _ar =["O_Soldier_SL_F","O_Soldier_AR_F","O_Soldier_F","O_officer_F"];
  14. _p =["O_Soldier_SL_F","O_Helipilot_F","O_Pilot_F"];
  15. _at =["O_Soldier_SL_F","O_Soldier_AT_F","O_Soldier_F","O_officer_F"];
  16. _c =["O_Soldier_SL_F","O_crew_F"];
  17.  
  18. switch (_action) do
  19. {
  20. // ====================================================================================
  21. // SL
  22. case 1:
  23. {
  24. if ((typeof _player) in _sl)
  25. then {_id = ["SL", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  26. else {hint "You are not authorized for this load out!";}
  27. };
  28. // ====================================================================================
  29. // Medic
  30. case 2:
  31. {
  32. if ((typeof _player) in _m)
  33. then {_id = ["M", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  34. else {hint "You are not authorized for this load out!";}
  35. };
  36. // ====================================================================================
  37. // Grenadier
  38. case 3:
  39. {
  40. if ((typeof _player) in _g)
  41. then {_id = ["G", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  42. else {hint "You are not authorized for this load out!";}
  43. };
  44. // ====================================================================================
  45. // R
  46. case 4:
  47. {
  48. if ((typeof _player) in _r)
  49. then {_id = ["R", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  50. else {hint "You are not authorized for this load out!";}
  51. };
  52. // ====================================================================================
  53. // AR
  54. case 5:
  55. {
  56. if ((typeof _player) in _ar)
  57. then {_id = ["AR", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  58. else {hint "You are not authorized for this load out!";}
  59. };
  60. // ====================================================================================
  61. // P
  62. case 6:
  63. {
  64. if ((typeof _player) in _p)
  65. then {_id = ["P", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  66. else {hint "You are not authorized for this load out!";}
  67. };
  68. // ====================================================================================
  69. // AT
  70. case 7:
  71. {
  72. if ((typeof _player) in _at)
  73. then {_id = ["AT", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  74. else {hint "You are not authorized for this load out!";}
  75. };
  76. // ====================================================================================
  77. // C
  78. case 8:
  79. {
  80. if ((typeof _player) in _c)
  81. then {_id = ["C", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  82. else {hint "You are not authorized for this load out!";}
  83. };
  84. // ====================================================================================
  85. // FTL
  86. case 9:
  87. {
  88. if ((typeof _player) in _tl)
  89. then {_id = ["FTL", _player] call compile preprocessFileLineNumbers "cScripts\Loadouts\cStartRED.sqf"; }
  90. else {hint "You are not authorized for this load out!";}
  91. };
  92. // ====================================================================================
  93. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement