• 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!

GM bc

SaxtoN

New Member
Joined
Mar 1, 2010
Messages
81
Reaction score
0
Hello, when my tutor try to do /bc he can just type 2-3 or 4 words. Or smth like..

Example /bc HELLO!

It comes like "LLO!"
 
go to data/talkactions/scripts and search broadcast.lua

now, inside there delet all and copy this:

PHP:
function onSay(cid, words, param, channel)
	if(param == '') then
		return true
	end

	doPlayerBroadcastMessage(cid, param)
	return true
end

it should work fine now
 
my bad.

search for broadcastclass.lua, delete every line inside it and copy this:

PHP:
function onSay(cid, words, param, channel)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return true
	end

	local t = string.explode(param, " ", 1)
	if(not t[2]) then
		doBroadcastMessage(t[1])
	elseif(not doBroadcastMessage(t[2], MESSAGE_TYPES[t[1]])) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Bad message color type.")
	end

	return true
end
 
open talkactions.xml and search for:
PHP:
<talkaction log="yes" access="3" words="/b" event="script" value="broadcast.lua"/>

and change where says access="3" to access="1"


now go to scripts and create a file called broadcast.lua
in there copy this:
PHP:
function onSay(cid, words, param, channel)
    if(param == '') then
        return true
    end

    doPlayerBroadcastMessage(cid, param)
    return true
end
 
Back
Top