Toribash
Original Post
[REL] aRules.lua
-- aRules.lua
-- helps you with tourney rules
-- by HoboJoey with the help of hampa

pressed = 0

local function RunCommand(cmd)
    run_cmd("cp \n"..cmd)
end

local function say_rules()
         RunCommand("SAY ^02Welcome to my tourney. The mod is wushufixed.tbm, prizes are 6k/3k.")
        RunCommand("SAY ^02Rules are:")
        RunCommand("SAY ^02No flamming, no caps, no spam, no trading, no linking, no colored text, no clan talk, no backseatmodearating.")
        RunCommand("SAY ^02Have Fun.")
        pressed = 1
end

local function key_up(key)
    if key == string.byte('j') then
        if pressed == 0 then
            say_rules()
        end
    end
end

add_hook("key_up","RulesHelper",key_up)
Its for the people who like to host tourney but dont have the MuteAll Script.
You have to download it and put it in Toribash/data/scripts/. Then you press esc ingame and go to settings -> Script and load it. If you press 'j' now it says the rules.

Post bugs and ideas pls.

HJ
Attached Files
aRules.lua (682 Bytes, 39 views)