Jump to content

[REL] Stinger drop script


Big Smoke

Recommended Posts

Posted

Great idea, however taking a quick look at the code, the script only runs on the clients, meaning the spikes will only show for the creator of the strips.

To make this work, you would have to use some sort of client-server interaction.

Whilst it would work if you made the entire script serverside, there is lag with client-server interaction, so the best way would probably to have most the code clientside, with small parts serverside to trigger cleintside functions.

Posted
To make this work, you would have to use some sort of client-server interaction.

Whilst it would work if you made the entire script serverside, there is lag with client-server interaction, so the best way would probably to have most the code clientside, with small parts serverside to trigger cleintside functions.

You could also write everything in a server-side script without any lag at all =)

Posted

this has been done for a while... we had it in our dm mode and interstate has it too... the only edit you need to make to interstate is sort out the drop angle which is simple cos its just your angle +90

  • 1 month later...
Posted

Do you think it would be possible to add the folding animation to the spike strips? In single player you can see cops laying the spike strips with an animation. Also the same animation could maybe used reversed, when removing the spike strips?

  • 2 months later...
Posted
With a bit of modification, you can do yourself. ;)

lol ok but it'l take me a while :wink:

Hint: bindKey, and look at the delete stinger part. (dunno if it works, haven't even looked in the script xD)

And then: add a little modification and you're done. :)

Posted
With a bit of modification, you can do yourself. ;)

lol ok but it'l take me a while :wink:

Hint: bindKey, and look at the delete stinger part. (dunno if it works, haven't even looked in the script xD)

And then: add a little modification and you're done. :)

:? could always do with an example, i would appreciate it

Posted
lol ok but it'l take me a while :wink:

Hint: bindKey, and look at the delete stinger part. (dunno if it works, haven't even looked in the script xD)

And then: add a little modification and you're done. :)

:? could always do with an example, i would appreciate it

Here's an example... :D

http://development.mtasa.com/index.php?title=BindKey

Probably not the one you need, but you didn't say what kind of example. :roll:

Posted
i was asking for an example
example here 

so that ill know what to do

Adding something like...

function destroyStingerKeybind( a, b, player ) 
    if( isElement( theStingers[ player ] ) ) then 
        destroyElement( theStingers[ player ] ) 
        destroyElement( theColShapes[ player ] ) 
    end 
end 
  
bindKey("F1","down",destroyStingerKeybind,thePlayer) 

...Near the bottom somewhere maybe?

Posted
i was asking for an example
example here 

so that ill know what to do

Adding something like...

function destroyStingerKeybind( a, b, player ) 
    if( isElement( theStingers[ player ] ) ) then 
        destroyElement( theStingers[ player ] ) 
        destroyElement( theColShapes[ player ] ) 
    end 
end 
  
bindKey("F1","down",destroyStingerKeybind,thePlayer) 

...Near the bottom somewhere maybe?

thanks much easier to understand than sa-mp's pwn.

Posted
i was asking for an example
example here 

so that ill know what to do

Adding something like...

function destroyStingerKeybind( a, b, player ) 
    if( isElement( theStingers[ player ] ) ) then 
        destroyElement( theStingers[ player ] ) 
        destroyElement( theColShapes[ player ] ) 
    end 
end 
  
bindKey("F1","down",destroyStingerKeybind,thePlayer) 

...Near the bottom somewhere maybe?

thanks much easier to understand than sa-mp's pwn.

Lol, pwn seems soooo not pwnage! :D

Posted

This is cool :o ^^ but i would use it if i didn't an y configuration, i would think it have been cool to be able to put a stinger on the side of the player, when pressing the button :D instead of using cars to do it ;)

Posted
This is cool :o ^^ but i would use it if i didn't an y configuration, i would think it have been cool to be able to put a stinger on the side of the player, when pressing the button :D instead of using cars to do it ;)

no not really

Posted
i was asking for an example
example here 

so that ill know what to do

Adding something like...

function destroyStingerKeybind( a, b, player ) 
    if( isElement( theStingers[ player ] ) ) then 
        destroyElement( theStingers[ player ] ) 
        destroyElement( theColShapes[ player ] ) 
    end 
end 
  
bindKey("F1","down",destroyStingerKeybind,thePlayer) 

...Near the bottom somewhere maybe?

How about only allowed if team=copteam?

Posted
i was asking for an example
example here 

so that ill know what to do

Adding something like...

function destroyStingerKeybind( a, b, player ) 
    if( isElement( theStingers[ player ] ) ) then 
        destroyElement( theStingers[ player ] ) 
        destroyElement( theColShapes[ player ] ) 
    end 
end 
  
bindKey("F1","down",destroyStingerKeybind,thePlayer) 

...Near the bottom somewhere maybe?

How about only allowed if team=copteam?

That's easy, just look how i did on my RPG mode: https://forum.multitheftauto.com/viewtopic.php?f=91&t=23398 ^^

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...