/* * File: fn_rankMenue.sqf * Author: ԄӏՖҚ - Fabian * Server: AllAboutRoleplay.de * * Description: * Öffnet das RankUp Menü. * */ disableSerialization; if (playerSide isEqualTo civilian) exitWith {}; createDialog "life_rankUp"; private _display = findDisplay 999; private _players = _display displayCtrl 9991; lbClear _players; if((playerSide == west) && (FETCH_CONST(life_coplevel) < 14)) then { ["Dein Rang ist zu Niedrig.","FAST","DEFAULT"] spawn life_fnc_message; }; if((playerSide == independent) && (FETCH_CONST(life_mediclevel) < 5)) then { ["Dein Rang ist zu Niedrig.","FAST","DEFAULT"] spawn life_fnc_message; }; { private _side = switch (side _x) do { case west: {"Polizei"}; case independent : {"Sanitöter"}; case civilian : {"Zivilist"}; default {"Unbekannt"}; }; _players lbAdd format ["%1 - %2", name _x,_side]; _players lbSetData [(lbSize _players)-1,str(_x)]; } forEach playableUnits;