Einmal die fn_initMedic.sqf und fn_initCop.sqf
Bei beiden habe ich es eigentlich gemacht.
fn_initMedic.sqf:
Spoiler anzeigen
#include "..\script_macros.hpp"
/*
File: fn_initMedic.sqf
Author: Bryan "Tonic" Boardwine
Description:
Initializes the medic..
*/
player addRating 99999999;
waitUntil {!(isNull (findDisplay 46))};
if ((FETCH_CONST(life_medicLevel)) < 1 && (FETCH_CONST(life_adminlevel) isEqualTo 0)) exitWith {
["Notwhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
[] 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.
// Uniformen Texturen START
[] spawn
{
while {true} do
{
waitUntil {uniform player == "U_Rangemaster"};
player setObjectTextureGlobal [0,"textures\Emergency\Kleidung\Person\recrute_uniform_rettungsdienst.paa"];
waitUntil {uniform player != "U_Rangemaster"};
};
};
// Uniformen Texturen ENDE
// Backpack Texturen Global START
// Backpack Texture
[] spawn
{
while {true} do
{
waitUntil {backpack player == "B_Kitbag_cbr"};
(unitBackpack player) setObjectTextureGlobal [0,"textures\Emergency\Kleidung\Rucksack\emergency_rucksack.paa"];
waitUntil {backpack player != "B_Kitbag_cbr"};
};
};
[] spawn life_fnc_medicPlaceablesInit;
fn_initCop.sqf :
Spoiler anzeigen
#include "..\script_macros.hpp"
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine
Description:
Cop Initialization file.
*/
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
if (life_blacklisted) exitWith {
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};
if ((FETCH_CONST(life_copLevel)) < 1 && (FETCH_CONST(life_adminlevel) isEqualTo 0)) exitWith {
["Notwhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
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.
// Uniformen Texturen START
[] spawn
{
while {true} do
{
waitUntil {uniform player == "U_B_CombatUniform_mcam_worn"};
player setObjectTextureGlobal [0,"textures\Cop\Kleidung\cop_uniform_4.jpg"];
waitUntil {uniform player != "U_B_CombatUniform_mcam_worn"};
};
};
// Uniformen Texturen ENDE
[] spawn life_fnc_placeablesInit;