#DaNiLiN Posted May 17, 2018 Share Posted May 17, 2018 Gente como eu privaria isso para 1 grupo só? addCommandHandler("fogo", function(lp) local x,y,z=getElementPosition(lp) local Rocket=createObject(3790,x,y,z-1.5,0,90,0) setTimer(function() moveObject(Rocket,500, x+math.random(0,5), y+math.random(0,5), z+math.random(20,50), 0, 0, math.random(0,200)) triggerClientEvent(root, "startSilvesterRocket", root, x, y, z) setTimer(function() local xr,yr,zr=getElementPosition(Rocket) createExplosion(xr,yr,zr,9,lp) createExplosion(xr,yr,zr,4,lp) destroyElement(Rocket) end,500,1) end,2000,1) end) MaxRocketPack = 3 RocketPack = 0 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