Forum

> > CS2D > Scripts > asdsad
Forums overviewCS2D overview Scripts overviewLog in to reply

English asdsad

3 replies
To the start Previous 1 Next To the start

old Re: asdsad

Me Gusta
User Playing CS2D

Quote
replace this in your code and set
1
2
3
4
5
6
7
8
9
addhook ("say","_say")
function _say(id,txt)
local tox=txt:sub(1,3)
if tox=="!bc" then
local fullstring = txt:sub(13)
msg("©00255000"..player(id,"name").."(broadcasts):"..fullstring)
	    return 1;
      end
end
the code "local tox=txt:sub(1,10)" set to local tox=txt:sub(1,3) and "!bc" is work or no?
edited 3×, last 14.08.13 03:26:25 am

old Re: asdsad

Alexsandro
User Off Offline

Quote
1
2
3
4
5
6
7
8
addhook("say","_say")
function _say(id,txt)
	if txt:sub(1,10) == "!broadcast" then
	local fullstring = txt:sub(12)
		msg("©00255000"..player(id,"name").."   (broadcasts):"..fullstring)
     return 1;
     end
end

old Re: asdsad

doits
User Off Offline

Quote
user Me Gusta has written
replace this in your code and set
1
2
3
4
5
6
7
8
9
addhook ("say","_say")
function _say(id,txt)
local tox=txt:sub(1,3)
if tox=="!bc" then
local fullstring = txt:sub(13)
msg("©00255000"..player(id,"name").."(broadcasts):"..fullstring)
	    return 1;
      end
end
the code "local tox=txt:sub(1,10)" set to local tox=txt:sub(1,3) and "!bc" is work or no?


Work but can't see word
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview