Jump to content
Sign in to follow this  
Richie

Reserve slots in MP Missions

Recommended Posts

Hello :)

Would someone be able to point me in the direction of adding a reserve slot or 2 on any MP mission ?

We run a public server and sometimes we have reports of players possibly up to no good, as one of the server admins we always go to investigate but most of the time we can't join the server as it's full.

So having the option to have a listed slot count plus 1 or 2 reserve slots would be ideal.

Thanks in advance

Richie

Share this post


Link to post
Share on other sites

Make some civilians (admin only) slots and if they don't login as admin within X seconds, mission ends.

You could also have a publicVariable handler on server, to listen for kick commands and kick them instead of ending mission.

if (playerSide == civilian) then { // if player is civilian
 [] spawn {
   sleep 60;    
   _isAdmin = serverCommandAvailable "#kick";  //Check if has admin rights or it is singleplayer
   if(!_isAdmin) then {
     endMission "LOSER";
   };
 };
};

(untested and most likely not working, but you get the idea)

Edited by aeroson

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  

×