khalcifer Posted March 20, 2018 Report Share Posted March 20, 2018 How can i add more Launcher or admins id [] spawn { if ((getPlayerUID player) != "my id") then { while {true} do { _weapon = currentWeapon player; _Types = [(configFile >> "CfgWeapons" >> _weapon),true] call BIS_fnc_returnParents; if ((("Launcher" in _Types) && (_weapon != "RPG7V")) || (_weapon in ["Anzio_20_DZ","Anzio_20","BAF_AS50_scoped","BAF_AS50_scoped_DZ","BAF_AS50_TWS","PMC_AS50_scoped","PMC_AS50_TWS","BAF_AS50_scoped_Large","BAF_AS50_TWS_Large","PMC_AS50_scoped_Large","PMC_AS50_TWS_Large"])) then { player removeWeapon _weapon; }; }; }; }; Not working [] spawn { if ((getPlayerUID player) != "my id","id my friend") then { while {true} do { _weapon = currentWeapon player; _Types = [(configFile >> "CfgWeapons" >> _weapon),true] call BIS_fnc_returnParents; if ((("Launcher" in _Types) && (_weapon != "RPG7V","MAAWS") ) || (_weapon in ["Anzio_20_DZ","Anzio_20","BAF_AS50_scoped","BAF_AS50_scoped_DZ","BAF_AS50_TWS","PMC_AS50_scoped","PMC_AS50_TWS","BAF_AS50_scoped_Large","BAF_AS50_TWS_Large","PMC_AS50_scoped_Large","PMC_AS50_TWS_Large"])) then { player removeWeapon _weapon; }; }; }; }; Not working [] spawn { if ((getPlayerUID player) != "my id","id my friend") then { while {true} do { _weapon = currentWeapon player; _Types = [(configFile >> "CfgWeapons" >> _weapon),true] call BIS_fnc_returnParents; if ((("Launcher" in _Types) && (_weapon != ["RPG7V","MAAWS"]) ) || (_weapon in ["Anzio_20_DZ","Anzio_20","BAF_AS50_scoped","BAF_AS50_scoped_DZ","BAF_AS50_TWS","PMC_AS50_scoped","PMC_AS50_TWS","BAF_AS50_scoped_Large","BAF_AS50_TWS_Large","PMC_AS50_scoped_Large","PMC_AS50_TWS_Large"])) then { player removeWeapon _weapon; }; }; }; }; Link to comment Share on other sites More sharing options...
Relentless Posted March 20, 2018 Report Share Posted March 20, 2018 if !(getPlayerUID player in [yourUID,hisUID]) then { code; }; or for better look _adminIDs = [uid1, uid2]; if !(getPlayerUID player in _adminIDs) then { code; }; Link to comment Share on other sites More sharing options...
khalcifer Posted March 20, 2018 Author Report Share Posted March 20, 2018 21 minutes ago, DAmNRelentless said: if !(getPlayerUID player in [yourUID,hisUID]) then { code; }; or for better look _adminIDs = [uid1, uid2]; if !(getPlayerUID player in _adminIDs) then { code; }; thx for felp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now