I was wondering if there was a certain way to restrict certain classes to certain users on my server?
The server runs on a modified Invade and Annex base, so classes are currently setup like this:
class Item0
{
position[]={15280.771,17.870386,17400.666};
azimut=-201.653;
special="NONE";
id=0;
side="WEST";
vehicle="SWOP_Clonetrooper";
player="PLAY CDG";
leader=1;
rank="LIEUTENANT";
skill=0.60000002;
text="s40";
init="(group this) setGroupId [""ALPHA""];";
description="Alpha Squad Leader";
syncId=0;
synchronizations[]={70};
};
Vehicle is the name of an NPC, and spawns you with all the equipment the NPC wears. I think restricting the "vehicle" string to a certain User ID would be the best course of action.
Something like:
If player = SWOP_Clonetrooper
and
Player UID is not in list
then
display: You are not whitelisted for this slot
and then something with BIS_fnc_endMission
Obviously this is not how code works, and would appreciate any help!