Advertisement
Guest User

Untitled

a guest
May 24th, 2016
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. Trigger:
  2. class Item24
  3. {
  4. position[]={15267.027,18.01264,17250.303};
  5. a=53;
  6. b=64;
  7. angle=-135;
  8. rectangular=1;
  9. activationBy="WEST";
  10. repeating=1;
  11. interruptable=1;
  12. age="UNKNOWN";
  13. text="CommandPost";
  14. name="CommandPost";
  15. expCond="(vehicle player) in thislist && (Status == 1);";
  16. expActiv="unitbase = [] execVM ""scripts\base_lock.sqf"";";
  17. expDesactiv="terminate unitbase; titleText [""You have left the restricted area!""]; ";
  18. class Effects
  19. {
  20. condition="";
  21. };
  22. };
  23.  
  24. Base_lock.sqf:
  25.  
  26. _uid = getPlayerUID player;
  27. if(_uid in PIDArray)
  28. then {
  29. _message = format ["Welcome back to the Command Post, %1!",name player];
  30. titleText [_message, "PLAIN DOWN", 1];
  31. }
  32. else
  33. {
  34. hintC "You are entering a restricted zone, please turn back.";
  35. titleText ["You are entering a restricted zone, please turn back.", 0.5];
  36. sleep 5;
  37. titleText ["You have 10 seconds to turn back...", "PLAIN DOWN", 0.5];
  38. sleep 5;
  39. titleText ["You have been warned..!", "PLAIN DOWN", 0.5];
  40. sleep 5;
  41. player setDamage 1;
  42. };
  43.  
  44. Laptop:
  45. class Item1351
  46. {
  47. position[]={15272.451,18.10956,17243.449};
  48. azimut=671.69598;
  49. offsetY=1.4;
  50. id=1440;
  51. side="EMPTY";
  52. vehicle="Land_Laptop_unfolded_F";
  53. skill=0.60000002;
  54. text="airdefenseTerminal_1_1";
  55. init="this allowDamage false; this enableSimulation false; access = this execVM ""scripts\killzones.sqf"";";
  56. };
  57.  
  58. killzones.sqf:
  59. WaitUntil{!isNull player};
  60. waitUntil {(getPlayerUID player) != ""};
  61. _uid = getPlayerUID player;
  62. if(_uid in PIDArray) then
  63. {
  64. alarm_on = _this addAction["<t color='#ffff00'>Disable All Kill Zones</t>","scripts\alarm.sqf","",1,false,true,"","Status == 1 && (player distance _target < 3)"];
  65. alarm_off = _this addAction["<t color='#ffff00'>Enable All Kill Zones</t>","scripts\alarm.sqf","",1,false,true,"","Status == 0 && (player distance _target < 3)"];
  66. };
  67.  
  68. alarm.sqf:
  69.  
  70. switch (Status) do {
  71. case 1 :
  72. {
  73. Status = 0;
  74. systemChat "Killzones in restricted areas have been deactivated!"
  75. };
  76. case 0 :
  77. {
  78. Status = 1;
  79. systemChat "Killzones in restricted areas have been activated!"
  80. };
  81. default
  82. {
  83. };
  84. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement