Jump to content
Sign in to follow this  
Guest

Get kicked :S because of no recoil :(

Recommended Posts

Guest

Hey i would like to add no recoil to my admin menu on the server. so i added a line...

 

but when i use it i get kicked probably beccause of an anti cheat stuf ? but how can i auterice me that i dont get kicked :S

 

there is the option for god mod for wastland server

 

// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
//@file Name: toggleGodMode.sqf

if (isDedicated) exitWith {};

if ((getPlayerUID player) call isAdmin) then
{
	_curPlayerInvulnState = player getVariable ["isAdminInvulnerable", false];

	if (!_curPlayerInvulnState) then
	{
		thirstLevel = 100;
		hungerLevel = 100;
		player setDamage 0;
		player setUnitRecoilCoefficient 0;
		player allowDamage false;
		vehicle player setDamage 0;
		player setVariable ["isAdminInvulnerable", true, true];

		if (player getVariable ["FAR_isUnconscious", 0] == 1) then
		{
			player setVariable ["FAR_isUnconscious", 0, true];
		};

		(findDisplay 27910) closeDisplay 0; // ReviveBlankGUI_IDD
		//(findDisplay 27911) closeDisplay 0; // ReviveGUI_IDD

		hint "You are now invulnerable, and no recoil";
	}
	else
	{
		player allowDamage true;
		player setVariable ["isAdminInvulnerable", false, true];
		hint "You are no longer invulnerable";
	};
};

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×