Big Smoke Posted April 17, 2008 Share Posted April 17, 2008 Stinger drop script This script will spawn a stinger behind your car when you press "x" when driving a car. When someone drives over it, their car's tires will be popped. Stingers will be removed from the game when you leave your vehicle or quit the server. Screenshots Download https://community.multitheftauto.com/index.html?p ... ils&id=125 Link to comment
eAi Posted April 17, 2008 Share Posted April 17, 2008 Glad someone has done this finally Link to comment
Stevvo Posted April 17, 2008 Share Posted April 17, 2008 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
Mr.Hankey Posted April 17, 2008 Share Posted April 17, 2008 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
Cazomino05 Posted April 17, 2008 Share Posted April 17, 2008 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 Link to comment
Kaltsu Posted June 4, 2008 Share Posted June 4, 2008 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
DakiLLa Posted June 11, 2008 Share Posted June 11, 2008 hm, nice script. Can use stinger ONLY cop-team in Cdm ? Link to comment
DutchCaffeine Posted June 11, 2008 Share Posted June 11, 2008 Yeah you can do it. Just check with a simple if statement if the player is a cop or not Link to comment
Scarface Posted August 30, 2008 Share Posted August 30, 2008 could you do this that instead of having the function destroy resource on player exit vehicle to when pressed x again it will destroy? Link to comment
Gamesnert Posted August 30, 2008 Share Posted August 30, 2008 With a bit of modification, you can do yourself. Link to comment
Scarface Posted August 30, 2008 Share Posted August 30, 2008 With a bit of modification, you can do yourself. lol ok but it'l take me a while Link to comment
Gamesnert Posted August 30, 2008 Share Posted August 30, 2008 With a bit of modification, you can do yourself. lol ok but it'l take me a while Hint: bindKey, and look at the delete stinger part. (dunno if it works, haven't even looked in the script ) And then: add a little modification and you're done. Link to comment
Scarface Posted August 30, 2008 Share Posted August 30, 2008 With a bit of modification, you can do yourself. lol ok but it'l take me a while Hint: bindKey, and look at the delete stinger part. (dunno if it works, haven't even looked in the script ) And then: add a little modification and you're done. could always do with an example, i would appreciate it Link to comment
Gamesnert Posted August 30, 2008 Share Posted August 30, 2008 lol ok but it'l take me a while Hint: bindKey, and look at the delete stinger part. (dunno if it works, haven't even looked in the script ) And then: add a little modification and you're done. could always do with an example, i would appreciate it Here's an example... http://development.mtasa.com/index.php?title=BindKey Probably not the one you need, but you didn't say what kind of example. Link to comment
Scarface Posted August 30, 2008 Share Posted August 30, 2008 i was asking for an example example here so that ill know what to do Link to comment
Gamesnert Posted August 30, 2008 Share Posted August 30, 2008 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
Scarface Posted August 30, 2008 Share Posted August 30, 2008 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
Gamesnert Posted August 30, 2008 Share Posted August 30, 2008 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! Link to comment
Scarface Posted August 31, 2008 Share Posted August 31, 2008 Lol, pwn seems soooo not pwnage! ha ha Link to comment
Michael_Sund Posted August 31, 2008 Share Posted August 31, 2008 This is cool ^^ 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 instead of using cars to do it Link to comment
Scarface Posted September 1, 2008 Share Posted September 1, 2008 This is cool ^^ 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 instead of using cars to do it no not really Link to comment
Scarface Posted September 1, 2008 Share Posted September 1, 2008 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
Michael_Sund Posted September 1, 2008 Share Posted September 1, 2008 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
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