Jump to content
Sign in to follow this  
Snakeyes1

Zeus Game Master Rights /How?

Recommended Posts

Greetings,

 

I want to run some missions on my server with a Zeus slot available in the server lobby. What is the best solution so that only server admins can select this slot and join the game as Zeus? There must be a way to control access.

Share this post


Link to post
Share on other sites

This should be a secured option for servers. Otherwise when server admins are not present on a public server, a hacker or nefarious player can join as Zeus and ruin the game for legit players.

Share this post


Link to post
Share on other sites

something like that..

put this in your init.sqf

zeus_whitelist = [ "YOUR_ADMIN_STEAMID_HERE", //put your admins steam id's on this array
	"YOUR_ADMIN_STEAMID_HERE"
	
];

waitUntil { alive player };
sleep 1;


_zeus = YOUR_ZEUS_UNIT_HERE; //change this to match your zeus unit

if ( !(( getPlayerUID _zeus ) in zeus_whitelist )) then {
	endMission "LOSER";				
};

 

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  

×