mirror of
https://github.com/ornfelt/azerothcore_lua_scripts
synced 2026-08-22 06:26:03 -04:00
19 lines
477 B
Lua
19 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)
|