/*
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
0 B
|👍
/👎
0 B
|👍
/👎