Jump to content

[REL] Stinger drop script


Big Smoke

Recommended Posts

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.

Link to comment
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 =)

Link to comment
  • 1 month later...

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?

Link to comment
  • 2 months later...
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

Link to comment
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:

Link to comment
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?

Link to comment
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.

Link to comment
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

Link to comment
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?

Link to comment
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 ^^

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