This is not made by me or mmotop.org team !!!
Credits: Protoss7
This script means players can see what GMs are online.
Whenever a Gamemaster logs on, they're name and rank gets added to a table. If they log off, the name and rank gets removed.
When a player typed the command "#gm list", a list of online GMs, and their ranks, is displayed in the Chat Box. If no GMs are online, it will display "There are no Game Masters online."
If you want to change the message, modify this part
Code:
local GM_MSG = "#gm list"
If you want the command to display when a player types it, the remove this
Code:
--[[ Scripted by Protoss7 of ***Web
Do not release without my permission ]]--
local GM_MSG = "#gm list"
local GameMasters = {}
function GmList_OnEnterWorld(event, player)
if (player:IsGm() == true) then
local txt = player:GetName().." ["..player:GetGmRank().."]"
table.insert(GameMaster, txt)
end
end
function GmList_OnLogout(event, player)
if (player:IsGm() == true) then
local txt = player:GetName().." ["..player:GetGmRank().."]"
table.remove(GameMaster, txt)
end
end
function GmList_OnChat(event, player, message, type, language)
if (message == GM_MSG) then
local next = next
if (next(GameMasters) == nil) then
player:SendBroadcastMessage("There are no Game Masters online.")
else
for k,v in pairs(GameMasters) do
local OnlineGms = v
player:SendBroadcastMessage(OnlineGms)
end
end
return 0
end
end
RegisterServerHook(13, "GmList_OnLogout")
RegisterServerHook(16, "GmList_OnChat")
RegisterServerHook(19, "GmList_OnEnterWorld")
Bookmarks