LeventHAN

fn_godZone.sqf

Jul 10th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 2.12 KB | None | 0 0
  1. /*
  2. Dosya ismi: fn_godZone.sqf
  3. Yapan: LeventHAN - help.leventhan.info //isimleri silmeyin - emek var sonucta.
  4.  
  5. Anlatım:
  6. Oyuncular güvenli bölgelerde hiç bir şekilde olmez. (GodMode)
  7. Polislere ROL yapması için not eklendi.
  8.  
  9. NOT:
  10.     !!!Infistar kullanıcıları!!!
  11.     Lütfen ayarlarınızı düzenleyin! -> /* Use EH_Fired check */ _EHF = false;
  12.  
  13. */
  14. #define GUVENLI_GOD_ZONE [["Safe_Kav", 750],["Safe_Pyr", 150],["Safe_Ath", 200],["Athira_Polis", 100],["Safe_Tir", 50],["Safe_Donator", 200],["Safe_Reb", 250],["Safe_Hav", 150],["Safe_Egitim", 130]]
  15. #define BILDIRIM "Burada Ateş Açamassın ! Burası Güvenli Bölge ...."
  16. #define YENIBILDIRIM "Lütfen gerekmedikçe boş yere sivillere ateş etme! ROL yaparak durumu sakinleştir!"
  17.  
  18.      if (isDedicated) exitWith {};
  19.      waitUntil {!isNull player};
  20.  
  21. switch (playerSide) do
  22. {
  23.     case west: {
  24.     player addEventHandler ["Fired", {
  25.             if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count GUVENLI_GOD_ZONE > 0) then {
  26.              titleText [YENIBILDIRIM, "PLAIN", 3];
  27.              };
  28.         }];
  29.     };
  30.  
  31.     case civilian: {
  32.         player addEventHandler ["Fired", {
  33.             if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count GUVENLI_GOD_ZONE > 0) then {
  34.              deleteVehicle (_this select 6);
  35.              player allowDamage false;
  36.              titleText [BILDIRIM, "PLAIN", 3];
  37.              };
  38.         }];
  39.     };
  40.  
  41.     case east: {
  42.      player addEventHandler ["Fired", {
  43.             if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count GUVENLI_GOD_ZONE > 0) then
  44.             {
  45.              deleteVehicle (_this select 6);
  46.              player allowDamage false;
  47.              titleText [BILDIRIM, "PLAIN", 3];
  48.              };
  49.         }];
  50.     };
  51.  
  52.     case independent: {
  53.      player addEventHandler ["Fired", {
  54.             if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count GUVENLI_GOD_ZONE > 0) then
  55.             {
  56.              deleteVehicle (_this select 6);
  57.              player allowDamage false;
  58.              titleText [BILDIRIM, "PLAIN", 3];
  59.              };
  60.         }];
  61.     };
  62. };
Advertisement