• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua [TALKACTIONS] (8.60) Broadcast Orange on Default For Player

samuel157

Intermediate OT User
Joined
Mar 19, 2010
Messages
616
Solutions
4
Reaction score
122
Location
São Paulo, Brazil
GitHub
Samuel10M
1575911226013.png
IMAGE of OT no My OT
I wanted this as it is in the image but the script is missing please if someone can help I thank. Need Script: Example: [/all] --> Player [1]: Message.

HELP ME!
 
Last edited:
Solution
LUA:
function onSay(cid, words, param, channel)
    if(param == "") then
        return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Please type a message for broadcast.") and true
    end
    if not (exhaustion.check(cid, 1000)) then
        exhaustion.set(cid, 1000, 60)
        broadcastMessage("[/all] --> "..getPlayerName(cid) .." [".. getPlayerLevel(cid) .. "]: " .. param, MESSAGE_STATUS_CONSOLE_ORANGE)
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Please wait "..exhaustion.get(cid, 1000).." second"..(exhaustion.get(cid, 1000) > 1 and "s" or "").." to broadcast again.")
    end
    return true
end
LUA:
function onSay(cid, words, param, channel)
    if(param == "") then
        return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Please type a message for broadcast.") and true
    end
    if not (exhaustion.check(cid, 1000)) then
        exhaustion.set(cid, 1000, 60)
        broadcastMessage("[/all] --> "..getPlayerName(cid) .." [".. getPlayerLevel(cid) .. "]: " .. param, MESSAGE_STATUS_CONSOLE_ORANGE)
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Please wait "..exhaustion.get(cid, 1000).." second"..(exhaustion.get(cid, 1000) > 1 and "s" or "").." to broadcast again.")
    end
    return true
end
 
Solution
Back
Top