return player:getAccountType() > ACCOUNT_TYPE_GAMEMASTER -- if account type is higher access than a gamemaster returns true to allow joining, otherwise returns false and doesn't allow access
player:sendChannelMessage("System:", "Welcome to GodChat!", MESSAGE_STATUS_CONSOLE_RED, 8)
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "You have left GodChat")
function onSpeak(player, type, message)
if player:getAccountType() == 10 then
if message == "hidehealth" then
player:setHiddenHealth(true)
if message == "showhealth" then
player:setHiddenHealth(false)
player:sendTextMessage(MESSAGE_INFO_DESCR, "You do not have appropriate account type to execute this channel command!")