Restricting Player slots

ArmA 2 editing; configs, modeling, missions, textures, terrain etc.

Moderators: Lone Wolf, Snake Man

Post Reply
SGTGunner
Newbie
Posts: 2
Joined: 2012-05-19 07:44:57
Gaming Interests: ArmA, ArmA 2 and OFP.
Editing Interests: Modeling + Texturing

Restricting Player slots

Post by SGTGunner » 2012-06-05 08:39:12

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

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests