• 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.X+ Help Channel message when open

dervin13

Active Member
Joined
Apr 26, 2008
Messages
458
Solutions
1
Reaction score
28
Hello, I use otx based on tfs 1.3 and when I open the help channel it doesn't show any message, is it possible to add a message when player enter in the channel??

thanks
 
Solution
nothing happens, I added in chatchannels, help
Window isn't fully open during onJoin so this message is being sent but won't be seen. Try this instead:
Lua:
function onJoin(player)
    addEvent(function(cid)
        local player = Player(cid)
        if not player then return end
        player:sendChannelMessage("", "MESSAGE", TALKTYPE_CHANNEL_R1, CHANNEL_HELP)
    end, 100, player.uid)
    return true
end
add this at the first line of the script before function onSpeak(player, type, message)
Code:
function onJoin(player)
    if not player then
        return true
    end
            player:sendChannelMessage("", "MESSAGE", TALKTYPE_CHANNEL_R1, CHANNEL_HELP)
    return true
end
 
nothing happens, I added in chatchannels, help
Window isn't fully open during onJoin so this message is being sent but won't be seen. Try this instead:
Lua:
function onJoin(player)
    addEvent(function(cid)
        local player = Player(cid)
        if not player then return end
        player:sendChannelMessage("", "MESSAGE", TALKTYPE_CHANNEL_R1, CHANNEL_HELP)
    end, 100, player.uid)
    return true
end
 
Solution
Back
Top