SA-MP Forums Archive
[FilterScript] Leviathan Magnet by De4dpOol. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Leviathan Magnet by De4dpOol. (/showthread.php?tid=565570)

Pages: 1 2


Leviathan Magnet by De4dpOol. - De4dpOol - 28.02.2015

Hello,
Its my 4th release and this time I made a Leviathan Magnet. Its a basic script and I will update it and add new features time to time.

What's this?
This scripts adds a Magnet under all the Leviathan on you server. It allows you to carry vehicles from one place to another. You can press H (KEY_CROUCH which is horn key in vehicle) to carry a vehicle when magnet is just over it and press H again for dropping it.
[NEW] Press and hold Y to move the magnet upward and Press and hold N to move the magnet downwards.

Bugs
The attached car can pass objects as well as solid ground.[Fixed using MapAndreas plugin]

(Not always works, maybe because of limitations of MapAndreas plugin)

Video
Watch in HD.
(Version 1.0 Picking up and dropping vehicle)
[ame]http://www.youtube.com/watch?v=SeSE1NRNkoU[/ame]

(Updated version 2.0 Picking Up, Dropping vehicle and moving magnet up and down)
[ame]http://www.youtube.com/watch?v=5zC46nORo_Q[/ame]

Download
http://pastebin.com/u/De4dpOol
Updated version requires MapAndreas 1.2.1. Download it from here: https://sampforum.blast.hk/showthread.php?tid=275492

Notes
Please don't claim this as yours and do not re-release it with or without any edits.

Regards,
De4dpOoL



Re: Leviathan Magnet by De4dpOol. - Michael B - 28.02.2015

Great! I was searching for something like this! I noticed that in a mission from single player and I wanted to make something similar for my server.

Thanks!


Re: Leviathan Magnet by De4dpOol. - De4dpOol - 28.02.2015

Quote:
Originally Posted by R3N3X
Посмотреть сообщение
Great! I was searching for something like this! I noticed that in a mission from single player and I wanted to make something similar for my server.

Thanks!
You'r welcome mate. Any suggestions?


Re: Leviathan Magnet by De4dpOol. - amirab - 28.02.2015

nice idea , i like that


Re: Leviathan Magnet by De4dpOol. - Michael B - 28.02.2015

Quote:
Originally Posted by De4dpOol
Посмотреть сообщение
You'r welcome mate. Any suggestions?
Looks good, but the update rate for the vehicles position should be increased, so it won't flip suddenly like that.


Re: Leviathan Magnet by De4dpOol. - hamzajaved780 - 28.02.2015

nice idea.. will be useful for rp servers.


Re: Leviathan Magnet by De4dpOol. - dionisak0s - 28.02.2015

It is not a bug, Leviathan can be parked on water lol


Re: Leviathan Magnet by De4dpOol. - Dry - 28.02.2015

Amazing,

Nice idea.


Re: Leviathan Magnet by De4dpOol. - Arastair - 28.02.2015

Nice, but what updates? This is a simple thing you can't improve it that much


Re: Leviathan Magnet by De4dpOol. - Finnick - 28.02.2015

Wow, That's Good Idea, Thanks Dude


Re: Leviathan Magnet by De4dpOol. - Abagail - 28.02.2015

Your missing the "reason" param in the OnPlayerDisconnect callback. I am suprised you didn't get any warnings telling you it was missing.


Re: Leviathan Magnet by De4dpOol. - De4dpOol - 01.03.2015

Quote:
Originally Posted by amirab
Посмотреть сообщение
nice idea , i like that
Thanks!

Quote:
Originally Posted by R3N3X
Посмотреть сообщение
Looks good, but the update rate for the vehicles position should be increased, so it won't flip suddenly like that.
I tried 1, 2, 20, 50 milliseconds in SetTimerEx but still I saw not much difference. I will try my best to improve it.

Quote:
Originally Posted by hamzajaved780
Посмотреть сообщение
nice idea.. will be useful for rp servers.
Thank you.

Quote:
Originally Posted by dionisak0s
Посмотреть сообщение
It is not a bug, Leviathan can be parked on water lol
LOL, I didn't knew that. Thanks for telling xD

Quote:
Originally Posted by Dry
Посмотреть сообщение
Amazing,
Nice idea.
Thanks mate.

Quote:
Originally Posted by Arastair
Посмотреть сообщение
Nice, but what updates? This is a simple thing you can't improve it that much
Well I meant adding features like movable magnet, I will add more features as soon as I got an idea.

Quote:
Originally Posted by Finnick
Посмотреть сообщение
Wow, That's Good Idea, Thanks Dude
Thank you and welcome!

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Your missing the "reason" param in the OnPlayerDisconnect callback. I am suprised you didn't get any warnings telling you it was missing.
Yea, I am surprised too. It compiles fine with and without reason parameter.


Re: Leviathan Magnet by De4dpOol. - Kapersky™ - 01.03.2015

Everythings' fine, nice FS.


Re: Leviathan Magnet by De4dpOol. - De4dpOol - 01.03.2015

Quote:
Originally Posted by Kapersky™
Посмотреть сообщение
Everythings' fine, nice FS.
Thank you!

Script Updated! Now the bug (Vehicle can pass through ground) is fixed by using the MapAndreas plugin.


Re: Leviathan Magnet by De4dpOol. - De4dpOol - 02.03.2015

BUMP! Update: Magnet movements are added now you can move the magnet up or down by holding Y and N.


Re: Leviathan Magnet by De4dpOol. - mustajab97 - 02.03.2015

OMG thats the thin i was w8ing for.....
Keep it up!


Re: Leviathan Magnet by De4dpOol. - De4dpOol - 02.03.2015

Quote:
Originally Posted by mustajab97
Посмотреть сообщение
OMG thats the thin i was w8ing for.....
Keep it up!
Thank you


Re: Leviathan Magnet by De4dpOol. - Excel™ - 02.03.2015

Didn't checked the code but good!


Re: Leviathan Magnet by De4dpOol. - Pillhead2007 - 02.03.2015

thought u was using my code https://sampforum.blast.hk/showthread.php?tid=564038 buts its not the same, check my post and see if you have the same bug ? anyway rep +_


Re: Leviathan Magnet by De4dpOol. - De4dpOol - 03.03.2015

Quote:
Originally Posted by Excel™
Посмотреть сообщение
Didn't checked the code but good!
Thanks man.

Quote:
Originally Posted by Pillhead2007
Посмотреть сообщение
thought u was using my code https://sampforum.blast.hk/showthread.php?tid=564038 buts its not the same, check my post and see if you have the same bug ? anyway rep +_
First of all no, I wasn't using your code, thats just the only way to do it by using a timer as AttachVehicleToObject does not exist. I decided to make it when I saw [ame]http://www.youtube.com/watch?v=Z6XbKRt5Gs8[/ame]
And No I don't have that bug when the vehicle is unoccupied as the range to attach the vehicle is very small but I haven't tested it with someone in the vehicle.
EDIT: Make sure that you are right before you post something wrong about someone, it is ok that you posted here but there is no need to post anything wrong about me in other threads.