Soul
Valued Member!
Anti Invisible Thread [AIT]
v1.1
This script runs a while loop that checks every players modelv1.1
and if it returns a non initiated model, empty model or model survivor1_dz
it morphs the player into a survivor2_dz model that is visible.
This fixed spawn invisible glitch and people who manage to make themselves
invisible on your servers.
- Easy = Blue <5
Make a new file called: anti_invis.sqf
and put this code inside it:
Code:
waitUntil {!isNil "dayz_animalcheck"};
while {true} do {
_model = typeOf player;
modelCheck = false;
if (isNil "_model") then {
_model = "Survivor2_DZ";
modelCheck = true;
};
if (_model == "") then {
_model = "Survivor2_DZ";
modelCheck = true;
};
if (_model == "Survivor1_DZ") then {
_model = "Survivor2_DZ";
modelCheck = true;
};
if(modelCheck) then {
[dayz_playerUID,dayz_characterID,_model] spawn player_humanityMorph;
};
sleep 10;
};
Call the new file in your init.sqf inside the if(!isDedicated) then {} part with
Code:
[] execVM "anti_invis.sqf";
Note:
If this takes to much resources you can make the sleep command at the bottom in anti_invis.sqf
longer to slow down the while loop.
Credits - Soul
Last edited: