ward1591 10 Posted December 25, 2014 I was wondering from my little scripting experience if this condition within a if statement works? Please be gentle with me everyone lol! if ((getPlayerUID player)in lowAdmins or highAdmins or serverOwners) Share this post Link to post Share on other sites
dreadedentity 278 Posted December 25, 2014 no _playerID = getPlayerUID player; if (_playerID in lowAdmins || _playerID in highAdmins || _playerID in serverOwners) then ---------- Post added at 01:05 ---------- Previous post was at 01:00 ---------- Or even cooler: if (typeName({if((getPlayerUID player) in _x) exitWith {true}} count [lowAdmins, highAdmins, serverOwners]) == "BOOL") then Share this post Link to post Share on other sites
ward1591 10 Posted December 25, 2014 no _playerid = getplayeruid player; if (_playerid in lowadmins || _playerid in highadmins || _playerid in serverowners) then ---------- post added at 01:05 ---------- previous post was at 01:00 ---------- or even cooler: if (typename({if((getplayeruid player) in _x) exitwith {true}} count [lowadmins, highadmins, serverowners]) == "bool") then okay thanks alot!!!!!! Share this post Link to post Share on other sites
dreadedentity 278 Posted December 25, 2014 okay thanks alot!!!!!! np. The 2 ways I posted are the correct ways to do what I think you wanted to do. But actually, what you had before could work, but definitely not for what you were trying to do Share this post Link to post Share on other sites
Larrow 2823 Posted December 25, 2014 (edited) noOr even cooler: if (typeName({if((getPlayerUID player) in _x) exitWith {true}} count [lowAdmins, highAdmins, serverOwners]) == "BOOL") then Lol what the **** is that , obfuscated much? if ( (getPlayerUID player) in ( lowAdmins + highAdmins + serverOwners ) ) then or at the most if ( { (getPlayerUID player) in _x }count [ lowAdmins, highAdmins, serverOwners ] > 0 ) then You been at the eggnog already ;) Edited December 25, 2014 by Larrow Share this post Link to post Share on other sites
dreadedentity 278 Posted December 25, 2014 You been at the eggnog already ;) lol no it was just more fun the complicated way :D Share this post Link to post Share on other sites
killzone_kid 1332 Posted December 25, 2014 Or even cooler: if (typeName({if((getPlayerUID player) in _x) exitWith {true}} count [lowAdmins, highAdmins, serverOwners]) == "BOOL") then Needs moar redundant operations and loops! Share this post Link to post Share on other sites
MrCopyright 107 Posted December 27, 2014 (edited) +1 Killzone_Kid Edited January 5, 2015 by MrCopyright Share this post Link to post Share on other sites