Jump to content
Sign in to follow this  
ward1591

Is this IF Statement Condition Possible?

Recommended Posts

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

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
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
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
no

Or 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 by Larrow

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×