Guest User

Untitled

a guest
Aug 10th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_adminreactions.sqf
  4. Author: RPGforYOU from outlawed-veterans.com
  5.  
  6. Description:
  7. Executes admin actions
  8. */
  9. private["_action","_unit","_message"];
  10. _action = [_this,0,-1,[0]] call BIS_fnc_param;
  11. //if(FETCH_CONST(life_adminlevel) == 5) exitWith {hint "Someone tried to execute a Punishment action on you"};
  12.  
  13. switch (_action) do {
  14. //Swat rank 1
  15. case 10: {
  16. [20] call SOCK_fnc_updatePartial;
  17. uiSleep 3;
  18. ["SWAT",false,true] call BIS_fnc_endMission;
  19. };
  20. //Swat rank 2
  21. case 11: {
  22. [21] call SOCK_fnc_updatePartial;
  23. uiSleep 3;
  24. ["SWAT",false,true] call BIS_fnc_endMission;
  25. };
  26. //Swat rank 3
  27. case 12: {
  28. [22] call SOCK_fnc_updatePartial;
  29. uiSleep 3;
  30. ["SWAT",false,true] call BIS_fnc_endMission;
  31. };
  32. //Swat rank 4
  33. case 13: {
  34. [23] call SOCK_fnc_updatePartial;
  35. uiSleep 3;
  36. ["SWAT",false,true] call BIS_fnc_endMission;
  37. };
  38. //Swat DEMOTION
  39. case 14: {
  40. [29] call SOCK_fnc_updatePartial;
  41. uiSleep 3;
  42. ["SWATDEMOTE",false,true] call BIS_fnc_endMission;
  43. };
  44. };
Add Comment
Please, Sign In to add comment