Forum

> > CS2D > Scripts > asdsad
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch asdsad

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: asdsad

Me Gusta
User Spielt CS2D

Zitieren
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?
3× editiert, zuletzt 14.08.13 03:26:25

alt Re: asdsad

Alexsandro
User Off Offline

Zitieren
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

alt Re: asdsad

doits
User Off Offline

Zitieren
user Me Gusta hat geschrieben
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht