MAB Posted July 28, 2015 Share Posted July 28, 2015 explosion doesn't get created... i want to create explosion in the place that the player click on... function onClientPlayerWeaponFireFunc(player) showCursor(player,true,false) addEventHandler("onPlayerClick",player,explosion) end addCommandHandler("ilovetoburn",onClientPlayerWeaponFireFunc) function explosion (button,state,a,b,x,y,z) if (button == "left" and state == "down") then createExplosion (x,y,z,1) showCursor(source,false,false) end end Link to comment
Buffalo Posted July 29, 2015 Share Posted July 29, 2015 wrong parameters for onPlayerClick function onClientPlayerWeaponFireFunc(player) showCursor(player,true,false) addEventHandler("onPlayerClick",player,explosion) end addCommandHandler("ilovetoburn",onClientPlayerWeaponFireFunc) function explosion (button,state,element,x,y,z) if (button == "left" and state == "down") then createExplosion (x,y,z,1) showCursor(source,false,false) end end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now