Wrong function parameters.
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
function explosion(x, y, size, damage) 	parse("explosion "..x.." "..y.." "..size.." "..damage) end addhook("die","explode") function explode(v,k,w,x,y) 	explosion(x,y,300, 300) end
function explosion(x, y, size, damage) 	parse("explosion "..x.." "..y.." "..size.." "..damage) end addhook("die","explode") function explode(v,k,w,x,y) 	explosion(x,y,300, 300) end
function explosion(x, y, size, damage) 	parse("explosion "..x.." "..y.." "..size.." "..damage.." "..sourceplayer) end 	addhook("die","explode") 	function explode(v,k,w,x,y) if (sample.zombie.class[id]==6) then 	explosion(x,y,100,100,32) 	end end
function explosion(x, y, size, damage, [b]source[/b]) 	parse("explosion "..x.." "..y.." "..size.." "..damage.." "..[b]source[/b]) end addhook("die","explode") function explode(v,k,w,x,y) 	explosion(x,y,300, 300, [b]v[/b]) end
laser=initArray(32) laser01=initArray(32) addhook("select","laserz") function laserz(id,t,mode) if t == 6 then if (laser01[id] == 6) then laser01[id]=0 freeimage(laser[id]) else laser01[id]=6 laser[id]=image("gfx/!Huevitorojo Sprites/laser.png",1,1,200+id) imageblend(laser[id],1) imagecolor(laser[id],255,0,0) imagealpha(laser[id],0.7) end else -- If not selected the right weapon, Remove the laser. laser01[id]=0 freeimage(laser[id]) end if t == 10 then if (laser01[id] == 10) then laser01[id]=0 freeimage(laser[id]) else laser01[id]=10 laser[id]=image("gfx/!Huevitorojo Sprites/laser.png",1,1,200+id) imageblend(laser[id],1) imagecolor(laser[id],255,0,0) imagealpha(laser[id],0.7) end else -- If not selected the right weapon, Remove the laser. laser01[id]=10 freeimage(laser[id]) end end
function explosion(x, y, size, damage, source) 	parse("explosion "..x.." "..y.." "..size.." "..damage.." "..source) end 	addhook("die","explode") 	function explode(v,k,w,x,y) if (sample.zombie.class[id]==6) and (player(id,"team") == 1) then 	explosion(x,y,100, 100, v) 	end end
function explosion(x, y, size, damage, source) 	parse("explosion "..x.." "..y.." "..size.." "..damage.." "..source) end addhook("die","explode") function explode(v,k,w,x,y) 	if sample.zombie.class[v]==6 and player(v,"team")==1 then 	 	explosion(x,y,100, 100, v) 	end end