Forum

> > CS2D > Scripts > Say information
Forums overviewCS2D overview Scripts overviewLog in to reply

English Say information

5 replies
To the start Previous 1 Next To the start

old Say information

Leonidas12
User Off Offline

Quote
hello im edited unreal sample if player says bilgi(notcmd)
information msgs
More >

old Re: Say information

if
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
if sample==nil then sample={} end
sample.sayfuncs={}

addhook("say","sample.sayfuncs.say")
function sample.sayfuncs.say(p,txt)


     if (txt=="bilgi") then 
 msg("Server Sahibi:Neomage ") 
 msg("Buymenu icin f2,f3,f4 ")
 msg("Lua Sahibi:Neomage")  
msg("Klan:[AdminZ] ")
end
Try that?

old Re: Say information

Leonidas12
User Off Offline

Quote
user if has written
1
2
3
4
5
6
7
8
9
10
11
12
13
if sample==nil then sample={} end
sample.sayfuncs={}

addhook("say","sample.sayfuncs.say")
function sample.sayfuncs.say(p,txt)


     if (txt=="bilgi") then 
 msg("Server Sahibi:Neomage ") 
 msg("Buymenu icin f2,f3,f4 ")
 msg("Lua Sahibi:Neomage")  
msg("Klan:[AdminZ] ")
end
Try that?

but this nt work
1
LUA ERROR: sys/lua/im.lua:11: unfinished string near '"Lua Sahibi:Neomage)'

old Re: Say information

SilentDash
User Off Offline

Quote
add a "end"

Edit: oh i dont read the error sry
Edit²: ehm i'm not sure but work this?

1
2
3
4
5
6
7
8
9
10
11
12
addhook("say","sample.sayfuncs.say")
	function sample.sayfuncs.say(p,txt)


		if (txt=="bilgi") then
		msg("Server Sahibi:Neomage ")
		msg("Buymenu icin f2,f3,f4 ")
		msg("Lua Sahibi:Neomage")
		msg("Klan:[AdminZ] ")
		end
	end
end

old Re: Say information

Kel9290
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
addhook("say","_say")
function _say(p,txt)
	if txt=="bilgi" then
		msg("Server Sahibi:Neomage")
		msg("Buymenu icin f2,f3,f4")
     		msg("Lua Sahibi:Neomage")
    		msg("Klan:[AdminZ]")
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview