Klappt leider noch immer nicht br1zey
ZitatAlles anzeigen#include <macro.h>
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine
Description:
Cop Initialization file.
*/
private["_end"];
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
_end = false;
if(life_blacklisted) exitWith
{
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};
if((FETCH_CONST(life_coplevel) == 0) && (FETCH_CONST(life_adminlevel) == 0)) then {
["NotWhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
if(backpack player == "tf_anprc155") then {
unitBackpack player setObjectTextureGlobal [0, ""];
};
player setVariable["rank",(FETCH_CONST(life_coplevel)),true];
[] call life_fnc_spawnMenu;
waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
[player, uniform player] call life_fnc_equipGear;
player setVariable ["copLevel",1,true];