LeventHAN icon

fn_godZone.sqf

LeventHAN | PRO | 07/10/18 01:52:59 PM UTC | 0 ⭐ | 6624 👁️ | Never ⏰ | []
SQF |

2.12 KB

|

None

|

0 👍

/

0 👎

/*
Dosya ismi: fn_godZone.sqf
Yapan: LeventHAN - help.leventhan.info //isimleri silmeyin - emek var sonucta.
 
Anlatım:
Oyuncular güvenli bölgelerde hiç bir şekilde olmez. (GodMode)
Polislere ROL yapması için not eklendi.
 
NOT:
    !!!Infistar kullanıcıları!!!
    Lütfen ayarlarınızı düzenleyin! -> /* Use EH_Fired check */ _EHF = false;
 
*/
#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]]
#define BILDIRIM "Burada Ateş Açamassın ! Burası Güvenli Bölge ...."
#define YENIBILDIRIM "Lütfen gerekmedikçe boş yere sivillere ateş etme! ROL yaparak durumu sakinleştir!"
 
     if (isDedicated) exitWith {};
     waitUntil {!isNull player};
 
switch (playerSide) do
{
    case west: {
    player addEventHandler ["Fired", {
            if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count GUVENLI_GOD_ZONE > 0) then {
             titleText [YENIBILDIRIM, "PLAIN", 3];
             };
        }];
    };
 
    case civilian: {
        player addEventHandler ["Fired", {
            if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count GUVENLI_GOD_ZONE > 0) then {
             deleteVehicle (_this select 6);
             player allowDamage false;
             titleText [BILDIRIM, "PLAIN", 3];
             };
        }];
    };
 
    case east: {
     player addEventHandler ["Fired", {
            if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count GUVENLI_GOD_ZONE > 0) then
            {
             deleteVehicle (_this select 6);
             player allowDamage false;
             titleText [BILDIRIM, "PLAIN", 3];
             };
        }];
    };
 
    case independent: {
     player addEventHandler ["Fired", {
            if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count GUVENLI_GOD_ZONE > 0) then
            {
             deleteVehicle (_this select 6);
             player allowDamage false;
             titleText [BILDIRIM, "PLAIN", 3];
             };
        }];
    };
};

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎