[FilterScript] Leviathan Magnet by De4dpOol.
#1

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
Reply
#2

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!
Reply
#3

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?
Reply
#4

nice idea , i like that
Reply
#5

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.
Reply
#6

nice idea.. will be useful for rp servers.
Reply
#7

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

Amazing,

Nice idea.
Reply
#9

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

Wow, That's Good Idea, Thanks Dude
Reply
#11

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

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.
Reply
#13

Everythings' fine, nice FS.
Reply
#14

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.
Reply
#15

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

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

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

Didn't checked the code but good!
Reply
#19

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 +_
Reply
#20

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


Forum Jump:


Users browsing this thread: 2 Guest(s)