1
2
3
4
5
6
7
2
3
4
5
6
7
parse ("startround") msg("©255000000Lua Made By Neomage") 	for id =1, 32 do addhook("hit" , "setpos") 		parse=hit ("wpnid 6") ..id.. ("setpos "..id.." X(130) Y(60) 6")
parse ("startround") msg("©255000000Lua Made By Neomage") 	for id =1, 32 do addhook("hit" , "setpos") 		parse=hit ("wpnid 6") ..id.. ("setpos "..id.." X(130) Y(60) 6")
addhook ("hit","lol"); function lol(PUTPARAMETERS HERE) end
addhook ("hit","lol"); function lol(PUTPARAMETERS HERE) end
parse ("startround") msg("©255000000Lua Made By Neomage") 	for id =1, 32 do addhook("hit" , "setpos") fuction setpos (" X(130) Y(60) 6 ") end
--hooks addhook ("startround","a"); addhook ("hit","b"); --variables wpnMainId = 0 -- put the weapon id here ;) --functions function a() msg("©255000000 KREEEEBBSS!") end function b(id,src,wpn) if (wpn==wpnMainId) then parse ("setpos "..src.." "..player(id,"x").." "..player(id,"y")); end end
--hooks addhook ("startround"); addhook ("hit"); --variables wpnMainId = 0 -- put the weapon id here ;) --functions function startround() msg("©255000000 KREEEEBBSS!") end function hit(id,src,wpn) if (wpn==wpnMainId) then parse ("setpos "..src.." "..player(id,"x").." "..player(id,"y")); end end
LUA ERROR: sys/lua/iii.lua:2: '=' expected near 'addhook'
--hooks addhook ("startround","_hit"); addhook ("hit","_hit"); --variables wpnMainId = 1 -- put the weapon id here ;) (1 is usp) --functions function startround() 	msg("©255000000 KREEEEBBSS!") end function hit(id,src,wpn) 	if (wpn==wpnMainId) then 		parse ("setpos "..src.." "..player(id,"x").." "..player(id,"y")); 	end end
-- hooks addhook("startround","telemsg") addhook("hit","telego") -- variables tilex = 130 tiley = 60 -- functions function telemsg() 	msg("©255000000Lua Made By Neomage") end function telego(id,src,wpn) 	if wpn == 6 then 		-- I assume the position given are in tiles, so... 		local rx = (tilex*32)+16 		local ry = (tiley*32)+16 		parse("setpos "..id.." "..rx.." "..ry) 	end end
-- hooks addhook("startround","telemsg") addhook("hit","telego") -- variables tilex = 130 tiley = 60 -- functions function telemsg() 	msg("©255000000Lua Made By Neomage") end function telego(id,src,wpn) 	if wpn == 6 then 		-- I assume the position given are in tiles, so... 		local rx = (tilex*32)+16 		local ry = (tiley*32)+16 		parse("setpos "..id.." "..rx.." "..ry) 	end end