information msgs
Forum
CS2D Scripts Say informationSay information
5 Antworten 1
information msgs
1
2
3
4
5
6
7
8
9
10
11
12
13
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
if hat geschrieben Try that?
1
2
3
4
5
6
7
8
9
10
11
12
13
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
but this nt work
1
LUA ERROR: sys/lua/im.lua:11: unfinished string near '"Lua Sahibi:Neomage)'
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
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
1
2
3
4
5
6
7
8
9
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
1