Servus an alle,
ich habe, wie im Titel schon zu sehen, ein Problem mit einem "Vehicle Whitelist Script" welches ich aus dem Internet gezogen habe. Das Problem besteht hierbei, dass ich folgende Fehlermeldung bekomme:
(Die Weißen Balken sind die USIDs)
Das Script habe ich im original belassen und nur die Classnames und die UIDs hinzugefügt.
Code: VehicleWhitelist.sqf
/*
VehicleWhitelist.sqf by Kahna
The player UID is a 17 digit number found in the profile tab.
Initially call this script in the Init.sqf and then include it in whatever script you use to respawn vehicles,
otherwise the respawned vehicle will not have the Whitelist script applied to it.
You can adapt this for vehicles and ships as well as using vehicle variable names in the restricted array if you desire to allow public players to operate the same type of aircraft that are reserved for players in the UID List (i.e. Wipeout 1 for Public, Wipeout 2 for Members, etc)
*/
_UIDList =
[
"UIDXXXXXXXXXXXXXX"// Name
"UIDXXXXXXXXXXXXXX"// Name
"UIDXXXXXXXXXXXXXX"// Name
"UIDXXXXXXXXXXXXXX"// Name
"UIDXXXXXXXXXXXXXX"// Name
"UIDXXXXXXXXXXXXXX"// Name
];
// Types of Players allowed to operate aircraft (i.e. PilotCheck). Omit this if you want anyone in the UID List to be able to fly. //
_AirRoles = ["class CUP_B_USMC_Pilot","class CUP_O_RU_Pilot_VDV_M_EMR"];
// Types of Aircraft to be restricted. //
_RestrictAir = ["CUP_B_MH6M_USA","CUP_B_UH60M_Unarmed_US","CUP_B_MH47E_USA","CUP_B_AH6J_USA","CUP_B_AH64D_DL_USA","CUP_B_AV8B_DYN_USMC","CUP_B_A10_DYN_USA","CUP_O_Mi8AMT_RU","CUP_O_Mi8_medevac_RU","CUP_O_MI6T_RU","CUP_O_Mi8_RU","CUP_O_Ka52_RU","CUP_O_Pchela1T_RU","CUP_O_Su25_Dyn_RU","CUP_O_SU34_RU"];
while {true} do {
waitUntil {sleep 0.5; alive player};
if (!((getPlayerUID player) in _UIDList) && ((typeof player) in _AirRoles)) then {
private "_v";
while {alive player} do {
waitUntil {sleep 0.5; vehicle player != player};
_v = vehicle player;
_t = typeof _v;
if (_t in _RestrictAir) then {
if (driver _v == player) then {
player action ["eject", _v];
waitUntil {sleep 0.5; vehicle player == player};
player action ["engineOff", _v];
hint "Noch keinen Whitelist? www.firsteurocorps.eu/forum";
};
};
};
} else {
waitUntil {sleep 0.5; !alive player};
};
};
Alles anzeigen
Aufgerufen wird das Script über die init.sqf der Mission mit dem befehl: execVM "scripts\VehicleWhitelist.sqf";
Könnte da mal einer drüber schauen? Ich Checks halt einfach nicht