View Full Version : [FilterScript] [Filterscript] BeckzyBoi's Vehicle Utilities

16/09/2007, 05:39 PM
BeckzyBoi's Vehicle Utilities Filterscript

A lot of you might remember my filterscript allowing you to enter a shamal as passenger. I totally forgot i had that until today i was deleting a load of junk from My Documents and i came across it. Thinking of how useful people found that and the lack of utilities for vehicles like it i created this filterscript.

• What does it do?:

▪ Shamal: Yes, my good ol' code. It is back and is being used in this filterscript. It works the same as before. You can enter a shamal as a passenger like you would with any other vehicle but it will take you to the interior of that shamal. Each shamal has it's own interior seperate from all other shamal's you have in your script. When a shamal vehicle explodes the interior also will.

▪ Tow Trucks: Now you are probably thinking; "There are a lot of these codes about. Why another one?". Well the answer is simple. I have seen a lot of the other ones and they disgust me. This isn't to have a go at the authors of those 'codes' i just advise you that if you want to use tow trucks in your server then make a good code yourself or use this one. Like i said, nothing personal against other people that have made tow truck codes but why should players suffer the effects of inefficient and unnecessary codes when they can just use this filterscript that i am happy to say has a very good tow truck code.
How to use?:
Well it is simple. If you want to tow a vehicle then just make sure you are in a tow truck (obviously), drive to a near-by car and press the handbrake key. I didn't think it was necessary to include a key to unhook vehicles as all you have to do is lower the hook and it will unhook itself.

▪ Trams: I have seen many codes where you must press 2 keys or a sequence of keys to get in a tram as a driver. And it made me think; why? So here is a good code and all you have to do is enter the tram as you would a normal vehicle. Both for driver and passenger as passengers in a tram is native anyway. The code will make sure that the driver seat is empty before it allows you in.

• How do i use this filterscript?:
- Just simply add bbvu to your filterscripts line in your server configuration file.

• Download the 'ready to use' amx file and the source code here (http://www.mediafire.com/?1rnsyx9lr2c).

Enjoy this filterscript and i would appriciate it if you DON'T steal the code from it. I made this filterscript to use as a whole and not as a bag of snippets where you take what you want and add to your script giving yourself credit.

Cheers, Beckzy.

16/09/2007, 05:53 PM
can you release ur gamemode please that would be the best

16/09/2007, 05:54 PM
Mirror (http://sneakysnizzle.sn.funpic.org/bbvu.rar)

16/09/2007, 06:49 PM
Great mate :D

16/09/2007, 06:50 PM

16/09/2007, 06:58 PM
Very nice Beckzy, question: the tram function, is it like a 2 door car or can you have multiple people in the tram? :roll:

16/09/2007, 07:11 PM
Well the Tram only has 2 seats as decided by Rockstar. But with trams and trains you can put a player in any seat and it will work but when you exit you will just leave the passenger seat as if you entered the proper passenger seat. I got up to seatid 15 before then just gave up at the conclusion that each and every seat will just register as slot 1. People say that trams have 4 seats just because they seen a tram using 4 seats in partyserver but all that is is what i have just explained and it doesn't actually have 4 seats. I mean people could say in another server they seen a tram with 6 seats but all that means is that the scripter's code has allowed it to go up to 6 seats when in actual fact the amount of seat ids you can use is unlimited.

But anyway i answered your question and you now know that i stuck with the native but lets not get into a big debate about something like this because the thread is about my filterscript in general and not what Rockstar decided ;).

Edit: btw thanks for the nice comments people :).

16/09/2007, 07:33 PM
Wow Very nice :)
I Hope this Tram script works lol :p Many dont...Many use timers aswell :S

Well this is very usefull :)
thanks ;)

16/09/2007, 09:57 PM
Heh glad you like it. Feedback is always wanted. Btw what do you think would be good for any future versions (Note: no new version will happen for a long time as i have got college). Maybe RC vehicles? Tbh i can't think of many vehicles that have anything possible to build on like the 3 that i have already done in this script.

17/09/2007, 01:28 AM
Nice FS Beckzy... Very usefull :)

17/09/2007, 10:52 AM
Well i am at college at the moment but i am really into the idea of this filterscript so i might add something else to it when i get home. I was thinking maybe RC vehicles..? There isn't a great choice of what is possible when customising vehicles with the logic i am using. I have a rough idea of something i could add with the Andromada but as i said i am at college so i will maybe work on 1 thing for a while each night during the week and then maybe something else at the weekend.

17/09/2007, 11:35 AM
How many objects in Shamal? So i don't get crashes :roll:

Redirect Left
17/09/2007, 01:00 PM
Very usefull script Beckzy ;)

How many objects in Shamal? So i don't get crashes :roll:
I count 14 objects per Shamal.

17/09/2007, 05:15 PM
Very nice beckzy, great to see something unique released once in a while on here!

As you wanted ideas:

1) Scripted RC Tiger cannon.
2) If shamal is locked: prohibit interior entering.
3) Vehicle tuning. example: /tuneme and admin /tuneall.
4) Option to Enable/Disable features.(maybe INI?)

Feel free to PM me about them.

Keep up the good work!
Cheers, Mikey

17/09/2007, 05:23 PM
Do you have to change the vehicle ID's for the vehicles? Or does it check the vehicles by model id?

17/09/2007, 05:27 PM
Do you have to change the vehicle ID's for the vehicles? Or does it check the vehicles by model id?

Uses model id ;)

17/09/2007, 05:28 PM
@ vkmaster: I like the RC Tiger turrent idea, thanks. Unfortunatly i can't check if a player has a vehicle locked in their script through my filterscript. It is just unfortunate that there isn't a GetVehicleParams function. I wont include tuning sorry and i wont be releasing an include file.

@ RobbyMeist3r: Don't touch the vehicle IDs, or touch them if you want. Either way they wont effect anything to do with the filterscript.

17/09/2007, 05:36 PM
Aaaah totaly forgot that there is no GetVehicleParams, that was me jumping ahead with ideas. :lol:

Note to self: Try thinking first! :roll:

Cheers, Mikey

17/09/2007, 05:39 PM
Wow, Beckzy..outdone urself again :)


17/09/2007, 11:15 PM
Thanks for the feedback guys. I doubt there are any bugs to report but maybe if some of you want to suggest improvements or ideas? Anyway g'night, it is after midnight here and i have college in the morning so i probably wont be online till tomorrow night.

17/09/2007, 11:55 PM
How many objects this uses?

18/09/2007, 12:02 AM
14 per Shamal. If you find it too much then blame Rockstar for making each passenger seat and head rest seperate objects and not just one big object which covers the lot which is usually the case in GTA.

18/09/2007, 12:15 AM
O.o that's a lot but thats still nice ;)

18/09/2007, 01:41 PM
If you want you can edit the filterscript and remove the seats and head rests or just the head rests or whatever, i have nothing against you doing that just don't do what most people do (especially this (http://forum.sa-mp.com/index.php?action=profile;u=1865) person) which is steal the codes, insert them into their own script and get the credit.

Cheers, Beckzy.

06/10/2007, 12:02 PM
(Very) Nice! Im using it :D And your name is at /credits

When my gamemode restarts I need to reloadfs otherwise I fall from the sky to my death if I enter a shamal (as passenger) :-[

Can I fix that?

06/10/2007, 01:08 PM
It seems you are saving a player's position, nothing to do with the filterscript. So maybe using something like this at the function which saves the position would be good.

new pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
if (floatcmp(pos[2], 800.0) == -1 || floatcmp(pos[2], 800.0) != -1
&& GetPlayerInterior(playerid) != 0)
// save position here

Using that small check will save the position of the player if he is in the normal world or in an interior of some sort but not if he is in the shamal interior. Hope it helped :).

08/10/2007, 02:44 PM
I think i found a bug. When you die inside the interior and then teleport you back (i have a command so you can teleport back to the spot you died at), then you can't exit the plane. Well, that's not an important bug, but i just wanted to tell you ;)

I love the script, keep it that way!

08/10/2007, 03:03 PM
it's bit normall, as the thingy to exit is made only when you enter Via the Shamal So it does not create the exit when you enter it in any other ways

08/10/2007, 05:19 PM
Wow cool thanks! but fix the mirror...its dont work...upload to rapidshare the best i guess :mrgreen:

edit, WORKS! i tryed in the morning, GREAT FS Good Work Man!

13/10/2007, 09:46 AM
My towtruck part isnt working, I pressed all handbrake buttons but it doesnt hook up
(Rctrl, Lctrl, Spacebar, Ralt, Lalt)

Wont work

Las Vegas
13/10/2007, 12:53 PM
Maybe u can make tow every car with /tow :-[

13/10/2007, 03:45 PM
Nibblet, there is only 1 handbrake button :/.

Las Vegas, make that yourself in your own script. It isn't hard ;).

Las Vegas
13/10/2007, 10:01 PM
make it for me :P

13/10/2007, 10:23 PM
public OnPlayerCommandText(playerid, cmdtext[])
if (!strcmp(cmdtext, "/tow", true))
new vst, Float:pos[6];
for (vst = 1; vst <= MAX_VEHICLES; vst++)
GetVehiclePos(vst, pos[0], pos[1], pos[2]);
GetVehiclePos(vst+1, pos[3], pos[4], pos[5]);
if (floatsqroot(floatadd(pos[3], floatadd(pos[4], pos[5]))))
AttachTrailerToVehicle(vst+1, vst);
PutPlayerInVehicle(playerid, 1, 0);
return true;
return false;

16/10/2007, 08:59 PM
can you release ur gamemode please that would be the best

Lol!!! What the fuck did you drink?! Nice FS btw ;)
Keep up the good work mate!

19/10/2007, 11:28 AM
Can I copy all the code into my game mode instead of having the FS ?

Your name will still be at /credits


28/10/2007, 03:40 AM
Of coarse, but if you are one of those that tries to do a copy and paste job, fails, then comes back asking for help then plz don't :|.

28/10/2007, 07:53 AM
Wow i like the tram entering, and stuff thanks beckzy i am using this with all credits to you

28/10/2007, 10:06 AM
Of coarse, but if you are one of those that tries to do a copy and paste job, fails, then comes back asking for help then plz don't :|.

lol.. it works just fine

28/10/2007, 01:54 PM
this FS is god. thx beckzy

28/10/2007, 01:57 PM
i use the towtruck, and it works excellent. :D

29/10/2007, 07:30 AM
Think someone could make another mirror because i cant seem to download from the 2 already there

29/10/2007, 06:07 PM

29/05/2008, 05:02 AM
Repost a link please.

21/06/2008, 07:16 AM
very good code thanx, but do u perhaps have a code for a job with the mechanic ? to deliver the cars of were thy belong perhaps ? like do a job

13/09/2008, 03:12 PM
Is it alright if you upload this to pastebin.

02/04/2009, 08:33 PM
just tryed this towing / tram driving / shamel plane code

love the plane code makes seprate planes for each shamel created /spawned
love the towing simple hand break for fast towing
tram on hill it dont like to let ya enter tram

overall 9 out of 10 im using this one for sure

02/04/2009, 08:39 PM
very nice code :D
Well done :)

22/07/2009, 05:20 PM
Extremely sorry to bump this, but does anyone have a mirror? I used this before and I would love to use it again :(

22/07/2009, 06:54 PM
This topic should been locked. It was posted for about 2 years ago. And ppl just keep the bumping up

22/07/2009, 07:27 PM
Yeah it should have :/ Sorry. I found the script I was looking for anyway... So if a mod sees this thread I think they should lock it.

04/08/2009, 11:24 AM
sorry for this Big Bumb but Beckzyboi, can you please put down a new download link? i was looking for this a long time

10/01/2010, 04:00 AM
[big bump]

Is the .pwn around? I use the awsome .amx but would like to alter the pickup truck part to not pickup aircraft


[/big bump]

10/01/2010, 06:17 AM
hey beckzys is that shamal script now on ur server?

25/02/2010, 02:44 AM
Anyone have links to this? I'd like this.

25/02/2010, 02:04 PM
Sexy work!


14/10/2010, 10:29 AM
Links down please update as im keen to use this

14/10/2010, 10:52 AM
Links are down please upload the new links please :p

14/10/2010, 10:53 AM
this script is from 2007 ;)

14/10/2010, 11:46 AM
thats why i asked for an updated link lol

14/10/2010, 12:11 PM
Nice FS ,Will be great if you can upload more :D

05/02/2011, 12:14 PM
Link is down :(

05/02/2011, 12:46 PM
Can you make train interior too?

06/04/2011, 10:01 PM
reaupload it..

07/10/2011, 09:43 PM
Deleted!!! Why :(

31/10/2011, 12:20 PM
Can you please re-upload this?

31/10/2011, 01:35 PM

01/11/2011, 01:46 AM
Really nice script to have, too bad link is down :(

27/11/2011, 07:07 AM
broken link

01/01/2012, 08:21 PM
mirror pls...