eluna-scripts/Example Scripts/Custom/GM-log.lua
ConradBunton e81f34271d Create GM-log.lua (#2)
Informs players when a gm logs in ou logs out
2017-11-28 23:22:16 +02:00

18 lines
477 B
Lua

print "---------- GM Login/Logout ---"
local function GMLogin (event, player)
print "GM log in"
if player:GetGMRank() > 1 then
SendWorldMessage("Lord |CFFFF0303"..player:GetName().."|r is among us.")
end
end
local function GMLogout (event, player)
print "GM log out"
if player:GetGMRank() > 1 then
SendWorldMessage("Lord |CFFFF0303"..player:GetName().."|r gone.")
end
end
RegisterPlayerEvent(3, GMLogin)
RegisterPlayerEvent(4, GMLogout)