Jump to content

Need some help with script


tinnetju

Recommended Posts

Ok, well my friend and i wanted to make a MTA video, so we searched for Metallica live shows (because my friend is fan of Metallica) We wanted to make something like this:

(Im talking about the explosions to script that) I don't need to map or something, but i just want the explosions and fireworks (rockets in MTA that explode in the sky, the same effect when you shoot an RPG into the sky). I also wanted to make frozen pets that dance on the music (i don't know if there is a ped animation that dances on the Metallica music) And bodyguards and stuff.

Can someone help me please...?

Thanks

Edited by Guest
Link to comment
  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

Hey , i have the anwanser for explosions , but on the fireworks i need to work a bit more :mrgreen:

Here it is :

function recourse_says_hai ()
explosions1 ()
end
addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai )
function explosions1 ()
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false ) -- you can add how many you want
setTimer ( explosions1, 1000, 1 ) -- you can set the time how much you want (1000-1sec))
end
end

Link to comment
Hey , i have the anwanser for explosions , but on the fireworks i need to work a bit more :mrgreen:

Here it is :

function recourse_says_hai ()
explosions1 ()
end
addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai )
function explosions1 ()
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false ) -- you can add how many you want
setTimer ( explosions1, 1000, 1 ) -- you can set the time how much you want (1000-1sec))
end
end

Thanks man!

Link to comment

Ok, i made this:

function recourse_says_hai ()
explosions1 ()
end
addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai )
function explosions1 ()
createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false )
createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false )
createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false )
createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false ) 
setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec))
end
end

But when i start the script, i get a message in the debugscript that he expected an EOF... I don't how to add the end of line...

Link to comment

So i got this:

function recourse_says_hai ()
explosions1 ()
end
addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai )
function explosions1 ()
createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false )
createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false )
createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false )
createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false )
createExplosion ( X, Y, Z, 12, false ) 
setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec))
end
end

And it has to be this?:

function recourse_says_hai ()
explosions1 ()
end
addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai )
function explosions1 ()
createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false )
createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false )
createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false )
createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false )
setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec))
end
end

And, i wanted to make a blip to:

function recourse_says_hai ()
explosions1 ()
end
addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai )
function explosions1 ()
createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false )
createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false )
createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false )
createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false )
setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec))
end
end
)
 
createBlip ( -2078.2707519531, 1427.4582519531, 8.5, 48 )
 
end
)

Is that correct?

Link to comment

Ok guys, i got this:

function recourse_says_hai ()
explosions1 ()
end
addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai )
function explosions1 ()
createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false )
createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false )
createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false )
createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false )
setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec))
end
 
createBlip ( -2078.2707519531, 1427.4582519531, 8.5, 48 )

But only the clip works! And the debugscript doesn't say anything! Did i filled in the wrong stuff in at setTimer? Or is it anything else..?

Please help me, and thanks for so far!

Link to comment
Ok guys, i got this:
function recourse_says_hai ()
explosions1 ()
end
addEventHandler ( "onClientResourceStart", getRootElement(), recourse_says_hai )
function explosions1 ()
createExplosion ( -2094.9040527344, 1419.5814208984, 15.529975891113, 12, false )
createExplosion ( -2061.7202148438, 1419.6507568359, 15.529975891113, 11, false )
createExplosion ( -2061.6442871094, 1437.0441894531, 15.529975891113, 0, false )
createExplosion ( -2094.9599609375, 1437.4919433594, 15.529975891113, 2, false )
setTimer ( explosions1, 3, 3 ) -- you can set the time how much you want (1000-1sec))
end
 
createBlip ( -2078.2707519531, 1427.4582519531, 8.5, 48 )

But only the clip works! And the debugscript doesn't say anything! Did i filled in the wrong stuff in at setTimer? Or is it anything else..?

Please help me, and thanks for so far!

Yes u did it wrong the timer part!

its in mili seconds (Ex. 1000 MS = 1 Second )

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...