eluna-scripts/Example Scripts/Custom/GM-log.lua

19 lines
477 B
Lua
Raw Permalink Normal View History

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)