Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isServer) then {
- reservedSlotsCiv = [civ_1,civ_2];
- reservedSlotsNotarzt = [Notarzt_1,Notarzt_2];
- reservedSlotsArzt = [Arzt_1,medic_2];
- reservedSlotsPolizei = [cop_1,cop_2];
- reservedSlotsTrooper = [trooper_1,trooper_2];
- reservedSlotsDEA = [dea_1,dea_2];
- reservedSlotsFBI = [fbi_1,fbi_2];
- reservedSlotsMS = [marshal_1,marshal_2];
- ["reserved", "onPlayerConnected", {
- private ["_uid","_player","_UIDList"];
- _UIDListCiv = call compile preProcessFile "scripts/whitelistCiv.txt";
- _UIDListNotarzt = call compile preProcessFile "scripts/whitelistNotarzt.txt";
- _UIDListArzt = call compile preProcessFile "scripts/whitelistArzt.txt";
- _UIDListPolizei = call compile preProcessFile "scripts/whitelistPolizei.txt";
- _UIDListTrooper = call compile preProcessFile "scripts/whitelistTrooper.txt";
- _UIDListDEA = call compile preProcessFile "scripts/whitelistDEA.txt";
- _UIDListFBI = call compile preProcessFile "scripts/whitelistFBI.txt";
- _UIDListMS = call compile preProcessFile "scripts/whitelistMS.txt";
- if (_uid < 1) exitWith {};
- _player = objNull;
- while {isNull _player} do {
- sleep 1;
- {
- if (_uid == getPlayerUID _x) then {
- _player = _x;
- };
- } forEach playableUnits;
- };
- if (_player in reservedSlots) then {
- if (! _uid in _UIDListCiv ) then {
- [["Du bist nicht gelistet für diesen Server"], "BIS_fnc_infoText", _player, false] call BIS_fnc_MP;
- sleep 1;
- [["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
- };
- };
- if (_player in reservedSlots) then {
- if (! _uid in _UIDListNotarzt ) then {
- [["Du bist nicht als Notarzt gelistet für diesen Server"], "BIS_fnc_infoText", _player, false] call BIS_fnc_MP;
- sleep 1;
- [["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
- };
- };
- if (_player in reservedSlots) then {
- if (! _uid in _UIDListArzt ) then {
- [["Du bist nicht als Arzt gelistet für diesen Server"], "BIS_fnc_infoText", _player, false] call BIS_fnc_MP;
- sleep 1;
- [["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
- };
- };
- if (_player in reservedSlots) then {
- if (! _uid in _UIDListPolizei ) then {
- [["Du bist nicht als Polizist gelistet für diesen Server"], "BIS_fnc_infoText", _player, false] call BIS_fnc_MP;
- sleep 1;
- [["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
- };
- };
- if (_player in reservedSlots) then {
- if (! _uid in _UIDListTrooper ) then {
- [["Du bist nicht als State Trooper gelistet für diesen Server"], "BIS_fnc_infoText", _player, false] call BIS_fnc_MP;
- sleep 1;
- [["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
- };
- };
- if (_player in reservedSlots) then {
- if (! _uid in _UIDListDEA ) then {
- [["Du bist nicht als DEA gelistet für diesen Server"], "BIS_fnc_infoText", _player, false] call BIS_fnc_MP;
- sleep 1;
- [["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
- };
- };
- if (_player in reservedSlots) then {
- if (! _uid in _UIDListFBI ) then {
- [["Du bist nicht als FBI gelistet für diesen Server"], "BIS_fnc_infoText", _player, false] call BIS_fnc_MP;
- sleep 1;
- [["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
- };
- };
- if (_player in reservedSlots) then {
- if (! _uid in _UIDListMS ) then {
- [["Du bist nicht als US Marshal gelistet für diesen Server"], "BIS_fnc_infoText", _player, false] call BIS_fnc_MP;
- sleep 1;
- [["end1",false], "BIS_fnc_endMission", _player, false] call BIS_fnc_MP;
- };
- };
- }] call BIS_fnc_addStackedEventHandler;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement