add god mode enabled variable flag

for #525
This commit is contained in:
vbawol 2016-07-06 23:56:48 -05:00
parent 872b90fa99
commit e9958bc5d8
2 changed files with 3 additions and 1 deletions

View File

@ -1 +1 @@
5 "" !=(Offer|Accept|BUILD_SLOT|TRADE_ACTIVE|last_targeter|epoch_(antagobj|antagBomb)) !="bis_fnc_objectvar_var" !="bis_fnc_selectrespawntemplate_respawned" 5 "" !=(Offer|Accept|BUILD_SLOT|TRADE_ACTIVE|last_targeter|epoch_(antagobj|antagBomb|gm_enabled)) !="bis_fnc_objectvar_var" !="bis_fnc_selectrespawntemplate_respawned"

View File

@ -1422,6 +1422,7 @@ _skn_admincode = compileFinal ("
"+_skn_tg_godMode+" = !"+_skn_tg_godMode+"; "+_skn_tg_godMode+" = !"+_skn_tg_godMode+";
if ("+_skn_tg_godMode+") then { if ("+_skn_tg_godMode+") then {
['God Mode',2] call "+_skn_adminLog_PVC+"; ['God Mode',2] call "+_skn_adminLog_PVC+";
player setVariable ['EPOCH_gm_enabled',true,true];
waitUntil { waitUntil {
player setBleedingRemaining 0; player setBleedingRemaining 0;
player setOxygenRemaining 1; player setOxygenRemaining 1;
@ -1434,6 +1435,7 @@ _skn_admincode = compileFinal ("
!"+_skn_tg_godMode+" !"+_skn_tg_godMode+"
}; };
player allowDamage true; player allowDamage true;
player setVariable ['EPOCH_gm_enabled',false,true];
} else { } else {
['God Mode',1] call "+_skn_adminLog_PVC+"; ['God Mode',1] call "+_skn_adminLog_PVC+";
} }