Log in

View Full Version : if X monster on screen play alarm



secret121
04-16-2016, 09:35 PM
need a script for EX: if orc warlord on screen play alarm

i tried searching with no luck anyone have such a thing?

dinmamma
04-17-2016, 01:07 PM
secret121
This was made to check for players, but it works on any "creature" name.



local PlayerList = {"Orc Warlord","Demon","Kharsek"}
Module.New('player alert', function(module)
local player = Self.GetSpectators(true)
for i =1, #player do
if table.contains(PlayerList, player[i]:Name()) then
alert()
module:Delay(2000)
end
end
end)

secret121
04-17-2016, 02:26 PM
thanks