lucho Posted February 29, 2016 Report Share Posted February 29, 2016 Can somebody help me with humanity didnt work if ((_hlevel == 0) && {(_humanity >= 7499) or (_humanity <= -2499)}) exitWith {systemChat "Heroes and bandits cannot select this class.";_go=0;}; if (_level == 4) then {if ((_humanity >= 7500) || (_humanity <= -2500)) exitWith {titleText ["\n\nThis class for noobs only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; private ["_classHover","_vipUID","_go","_hlevel","_humanity","_itemText","_level","_selectedItem"]; disableSerialization; _go = true; _selectedItem = lbCurSel 8888; _itemText = lbText [8888,_selectedItem]; {if (_itemText == (_x select 0)) then {_classHover = _x;};} forEach presetClasses; {if (_itemText == (_x select 0)) then {_classHover = _x;};} forEach vipListClasses; if (isNil "_classHover") exitWith {titleText ["\n\nSelect a class!","PLAIN DOWN"];titleFadeOut 4;_go = false;}; _level = _classHover select 7; if (_level != 0) then { if (_level == 1) then {if !(_vipUID in vipClassLvl1) exitWith {titleText ["\n\nThis class is level 1 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 2) then {if !(_vipUID in vipClassLvl2) exitWith {titleText ["\n\nThis class is level 2 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 3) then {if !(_vipUID in vipClassLvl3) exitWith {titleText ["\n\nThis class is level 3 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 4) then {if ((_humanity >= 7500) || (_humanity <= -2500)) exitWith {titleText ["\n\nThis class for noobs only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; }; _hlevel = _classHover select 8; if (_hlevel != 0) then { _humanity = player getVariable ["humanity",0]; if ((_hlevel < 0) && (_humanity >= _hlevel)) exitWith {titleText [format["\n\nYour humanity must be less than %1 for this class.",_hlevel], "PLAIN DOWN"];titleFadeOut 4;_go = false;}; if ((_hlevel > 0) && (_humanity <= _hlevel)) exitWith {titleText [format["\n\nYour humanity must be greater than %1 for this class.",_hlevel], "PLAIN DOWN"];titleFadeOut 4;_go = false;}; if ((_hlevel == 0) && {(_humanity >= 7499) or (_humanity <= -2499)}) exitWith {systemChat "Heroes and bandits cannot select this class.";_go=0;}; }; if (_go) then {classSelect = _classHover;}; Link to comment Share on other sites More sharing options...
0 lucho Posted March 1, 2016 Author Report Share Posted March 1, 2016 19 hours ago, lucho said: Can somebody help me with humanity didnt work if ((_hlevel == 0) && {(_humanity >= 7499) or (_humanity <= -2499)}) exitWith {systemChat "Heroes and bandits cannot select this class.";_go=0;}; if (_level == 4) then {if ((_humanity >= 7500) || (_humanity <= -2500)) exitWith {titleText ["\n\nThis class for noobs only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; private ["_classHover","_vipUID","_go","_hlevel","_humanity","_itemText","_level","_selectedItem"]; disableSerialization; _go = true; _selectedItem = lbCurSel 8888; _itemText = lbText [8888,_selectedItem]; {if (_itemText == (_x select 0)) then {_classHover = _x;};} forEach presetClasses; {if (_itemText == (_x select 0)) then {_classHover = _x;};} forEach vipListClasses; if (isNil "_classHover") exitWith {titleText ["\n\nSelect a class!","PLAIN DOWN"];titleFadeOut 4;_go = false;}; _level = _classHover select 7; if (_level != 0) then { if (_level == 1) then {if !(_vipUID in vipClassLvl1) exitWith {titleText ["\n\nThis class is level 1 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 2) then {if !(_vipUID in vipClassLvl2) exitWith {titleText ["\n\nThis class is level 2 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 3) then {if !(_vipUID in vipClassLvl3) exitWith {titleText ["\n\nThis class is level 3 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 4) then {if ((_humanity >= 7500) || (_humanity <= -2500)) exitWith {titleText ["\n\nThis class for noobs only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; }; _hlevel = _classHover select 8; if (_hlevel != 0) then { _humanity = player getVariable ["humanity",0]; if ((_hlevel < 0) && (_humanity >= _hlevel)) exitWith {titleText [format["\n\nYour humanity must be less than %1 for this class.",_hlevel], "PLAIN DOWN"];titleFadeOut 4;_go = false;}; if ((_hlevel > 0) && (_humanity <= _hlevel)) exitWith {titleText [format["\n\nYour humanity must be greater than %1 for this class.",_hlevel], "PLAIN DOWN"];titleFadeOut 4;_go = false;}; if ((_hlevel == 0) && {(_humanity >= 7499) or (_humanity <= -2499)}) exitWith {systemChat "Heroes and bandits cannot select this class.";_go=0;}; }; if (_go) then {classSelect = _classHover;}; Work sorry now tested twice. Closed Link to comment Share on other sites More sharing options...
Question
lucho
Can somebody help me with humanity
didnt work
if ((_hlevel == 0) && {(_humanity >= 7499) or (_humanity <= -2499)}) exitWith {systemChat "Heroes and bandits cannot select this class.";_go=0;};
if (_level == 4) then {if ((_humanity >= 7500) || (_humanity <= -2500)) exitWith {titleText ["\n\nThis class for noobs only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};};
private ["_classHover","_vipUID","_go","_hlevel","_humanity","_itemText","_level","_selectedItem"]; disableSerialization; _go = true; _selectedItem = lbCurSel 8888; _itemText = lbText [8888,_selectedItem]; {if (_itemText == (_x select 0)) then {_classHover = _x;};} forEach presetClasses; {if (_itemText == (_x select 0)) then {_classHover = _x;};} forEach vipListClasses; if (isNil "_classHover") exitWith {titleText ["\n\nSelect a class!","PLAIN DOWN"];titleFadeOut 4;_go = false;}; _level = _classHover select 7; if (_level != 0) then { if (_level == 1) then {if !(_vipUID in vipClassLvl1) exitWith {titleText ["\n\nThis class is level 1 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 2) then {if !(_vipUID in vipClassLvl2) exitWith {titleText ["\n\nThis class is level 2 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 3) then {if !(_vipUID in vipClassLvl3) exitWith {titleText ["\n\nThis class is level 3 VIP only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; if (_level == 4) then {if ((_humanity >= 7500) || (_humanity <= -2500)) exitWith {titleText ["\n\nThis class for noobs only.","PLAIN DOWN"];titleFadeOut 4;_go = false;};}; }; _hlevel = _classHover select 8; if (_hlevel != 0) then { _humanity = player getVariable ["humanity",0]; if ((_hlevel < 0) && (_humanity >= _hlevel)) exitWith {titleText [format["\n\nYour humanity must be less than %1 for this class.",_hlevel], "PLAIN DOWN"];titleFadeOut 4;_go = false;}; if ((_hlevel > 0) && (_humanity <= _hlevel)) exitWith {titleText [format["\n\nYour humanity must be greater than %1 for this class.",_hlevel], "PLAIN DOWN"];titleFadeOut 4;_go = false;}; if ((_hlevel == 0) && {(_humanity >= 7499) or (_humanity <= -2499)}) exitWith {systemChat "Heroes and bandits cannot select this class.";_go=0;}; }; if (_go) then {classSelect = _classHover;};
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now