• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.3 Battlefield

Dorianek

Member
Joined
Nov 29, 2018
Messages
213
Best answers
0
Reaction score
8
Location
Poland
36946


Code:
function onSay(player, words, param, channel)
    if not player:getGroup():getAccess() then
        return true
    end
    if player:getAccountType() < ACCOUNT_TYPE_GOD then
        return false
    end
    if(param == '')then
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Caso queira abrir o evento, digite: /battlefield on")
        return false
    end
    if(param == "on")then
        if(Game.getStorageValue(6486214892) >=1)then
            player:sendTextMessage(MESSAGE_STATUS_CONSOLE_RED, "O Battlefield ja esta aberto.")
            return false
        end
        player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Battlefield Started!")
        startBF()
    end
    return false
end
 
Top