Page 1 of 1

Restricting Player slots

Posted: 2012-06-05 08:39:12
by SGTGunner
Folks,

I am hoping someone can help me with this, I have searched over the Internet and there is very little info on how to restrict a player going in a slot when entering a dedi-server.

I tried this and it doesn't seem to work.

OnPlayerConnected "[_uid,_name] execVM ""checkslot.sqf""";

_uid = _this select 0;
_name = _this select 1;
_slot1 = ["123456","654321","321654"];
if ((isplayer wslot1) and not (_uid in _slot1)) then
{
serverCommand Format["#kick %1",_name];
};

Now, I know that the serverCommand is restricted. So, I used the replacement of endMission "end1";

My main issue is that I cannot seem to get OnPlayerConnected to fire correctly (ie. not at all?)

Any assistance would be greatly appreciated!

Thanks in Advance.

Cheers,

SGTGunner