to rework the laser mod.
command:
! Light
! Red
! Yellow
! Blue
! White
! Green
! Pro
! Dm
Probably forgot about some
No matter. Have fun! And good aim!
Approved by GeoB99
Download
65 kb, 664 Downloads
imgpath = "gfx/akimgfx/laserakim.bmp" COLOR = { [ '!red'] = {255,0,0},['!pink'] ={255,0,255},['!green']={0,255,0},['!blue']={0,0,255},['!yellow'] = {255,122,0},['!white'] = {255,255,255}} addhook("say","my_say") function my_say(id,txt) 	if(string.sub(txt,1,1)=='!') then 		if(txt == '!off') then 			freeimage(id)				 		elseif(txt == '!dm' or txt == '!pro') then 			freeimage(id) 			id1 = image("gfx/akimgfx/"..string.sub(txt,2,-1)..".bmp",1,1,200+id) 			imageblend(id,1) 			imagealpha(id,0.5) 			imagecolor(id1,255,255,255) 		end 		if(COLOR[txt] ~= nil) then 			freeimage(id) 			id1=image(imgpath,1,1,200+id) 								 			imageblend(id,1)								 			imagealpha(id,0.5) 			local clr = COLOR[txt] 			imagecolor(id1,clr[1],clr[2],clr[3])			 		end		 	end end