PDA

View Full Version : Play alarm if player on screen



puszkyn91
02-10-2016, 11:17 PM
Hey guys! can some one help me with script that plays alarm when someone is on my screen, but ignores when "player name x" is on the screen?

fenario
02-11-2016, 12:03 AM
also in need

eldera
02-11-2016, 01:04 AM
local whiteList = {
["Elderapo"] = true,
["Mi Name Ispotato"] = true
}

-- [[ DO NOT EDIT ANYTHING BELOW THIS LINE ]] --


Module.New("player-on-screen-alarm", function()
for name, cid in Creature.iPlayers() do
if (not whiteList[name]) then
alert()
end
end
end)

puszkyn91
02-18-2016, 11:57 PM
thanks