eluna-scripts-ornfelt/lua/Scripts/Example Scripts/Custom/GM-log.lua
2024-09-23 07:59:23 +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)