TheEisbaer, on 05 April 2015 - 02:08 PM, said:
I kinda fixed it:
function checkScanner() allowPlayer = false denyPlayer = false nearbyPlayers = Sensor.getPlayerNames() if nearbyPlayers then for i=1,#nearbyPlayers do tempname=nearbyPlayers[i] for j=1,#current.settings.WhiteList do if current.settings.WhiteList[j]==tempname.name then openSide() allowPlayer = true else if not allowPlayer then openAlarmSide() denyPlayer = true end end end end end scanPlayers = os.startTimer(0.5) if denyPlayer or allowPlayer then return true else return false end end
Maybe a few "end"s are missing but it work for me now />
EDIT: Fancied the code a bit, it now support any number of whitelisted users, thanks to a friend.
http://ideone.com/vQ2B06 for better "tabbing"
EDIT2: Fancied even more
I will look into this issue and update the program with a fix. Due to the license you are not supposed to adjust code to suit your needs, the update should be released tomorrow, I will also fix GUI bugs that are causing issues.
The code you have posted has various vulnerability problems with the new Security Suite that will be released soon, thus this code will not be used in the patch. Thanks for letting me know, youll have a patch for it soon.
Also the code already supported multiple whitelisted players, and I have no idea what you mean by "tabbing", do you mean in the program or as in the browser?
Edited by Hbomb_79, 06 April 2015 - 01:53 AM.