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
Restricting Player slots
Moderators: Lone Wolf, Snake Man
-
- Newbie
- Posts: 2
- Joined: 2012-05-19 07:44:57
- Gaming Interests: ArmA, ArmA 2 and OFP.
- Editing Interests: Modeling + Texturing