RageMonkey/Altis_Life.Altis — pull request #24 by Heetesh (2014-08-30 07:04:31+00:00)
Title: fn_godMode.sqf FIX

//Core -->Admin -->fn_godMode.sqf
//Remove
godmode = 1;
cutText ["God mode activated.", "PLAIN"];
player removeAllEventHandlers "handleDamage";
player addEventHandler ["handleDamage", {false}];
player allowDamage false;
}

else
{
godmode = 0;
cutText ["God mode Deactivated.", "PLAIN"];
player allowDamage true;

player addEventHandler ["handleDamage", {true}];
player removeAllEventHandlers "handleDamage";
_____________________________________________________________________________________
//Replace With
godmode = 1;
cutText ["God mode activated.", "PLAIN"];
player removeAllEventHandlers "handleDamage";
player addEventHandler ["handleDamage", {false}];
player allowDamage false;
}

else
{
godmode = 0;
cutText ["God mode Deactivated.", "PLAIN"];
player addEventHandler ["handleDamage", {true}];
player removeAllEventHandlers "handleDamage";
player allowDamage true;