SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 22/06/2012, 05:30 PM   #1
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,236
Reputation: 1004
Default gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

There is a bug in SA:MP where if you press G to enter a vehicle as a passenger and the driver drives away, you run after them and after 3 seconds you get teleported in regardless of how far away the vehicle is. This include fixes that.

[ame]http://www.youtube.com/watch?v=N-Gt4n8Yx9k[/ame]

Tested hundreds of times, seems flawless.

Download:
http://pastebin.com/KxU52Y1k
You will need the y_hooks include which is part of YSI, this can be downloaded here: http://forum.sa-mp.com/showthread.php?p=1696956

All you need to do is include it in your gamemode. Nothing else is required.

Let me know if you find any problems with it!

Thanks.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!

Last edited by MP2; 23/06/2012 at 08:21 AM.
MP2 is offline   Reply With Quote
Old 22/06/2012, 05:37 PM   #2
Jansish
Guest
 
Posts: n/a
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

0:38 will now haunt my dreams
  Reply With Quote
Old 22/06/2012, 05:45 PM   #3
Kyle
High-roller
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,260
Reputation: 333
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

Get on irc! Ontopic: This is excellent!
Kyle is offline   Reply With Quote
Old 22/06/2012, 05:52 PM   #4
Kaperstone
Banned
 
Join Date: May 2011
Location: Russia
Posts: 3,004
Reputation: 824
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

Thank you
intersting if it blocks hackers to get into vehicle from a distance.
Kaperstone is offline   Reply With Quote
Old 22/06/2012, 06:12 PM   #5
newbienoob
High-roller
 
newbienoob's Avatar
 
Join Date: Jan 2012
Location: Follow the moaning coming from your parents' bedroom
Posts: 1,531
Reputation: 269
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

LOL @ 0:38 xD
Btw, good job.. for sure I will use it.
__________________
Help me, please /a chat
newbienoob is offline   Reply With Quote
Old 22/06/2012, 06:31 PM   #6
Riddick94
Banned
 
Join Date: Mar 2010
Location: Poland
Posts: 1,767
Reputation: 223
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

Is it has been fixed in the current version? Isn't it?
Riddick94 is offline   Reply With Quote
Old 22/06/2012, 06:42 PM   #7
Face9000
Banned
 
Join Date: Jan 2010
Location: Pigland
Posts: 3,351
Reputation: 190
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

Seems like the anti gbug in CrazyBob.Nice work.
Face9000 is offline   Reply With Quote
Old 22/06/2012, 07:19 PM   #8
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,236
Reputation: 1004
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

Quote:
Originally Posted by Jansish View Post
0:38 will now haunt my dreams
xD

Quote:
Originally Posted by xkirill View Post
Thank you
intersting if it blocks hackers to get into vehicle from a distance.
It won't, no. It uses OnPlayerEnterVehicle to detect when they run to a vehicle, GetPlayerSpecialAction and velocities.

Quote:
Originally Posted by Riddick94 View Post
Is it has been fixed in the current version? Isn't it?
Nope, it must be a GTA: SA bug.

Quote:
Originally Posted by Logitech90 View Post
Seems like the anti gbug in CrazyBob.Nice work.
Yeah I was 'inspired' by that.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Old 22/06/2012, 08:09 PM   #9
Kyle
High-roller
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 2,260
Reputation: 333
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

Can you make it for trying to jack player too?
Kyle is offline   Reply With Quote
Old 22/06/2012, 09:09 PM   #10
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,236
Reputation: 1004
Default Re: gBug - Prevent 'the G bug' - prevents players teleporting into passenger seat

I was originally going to do that also, but couldn't replicate that. If you could show me a video of how it's done I will look in to it.

I assume you mean when they are jacking you but you don't see it, and you get teleported out with the 'carjacked!' gametext that is coded in to SA:MP.
__________________
Owner and developer of Mike's Cops and Robbers.

Click here to visit our site and find out more. Click here to view trailers.
Enter referral code SAMPFORUM after registering for a $5000 starting bonus!
MP2 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS]Nevada Passenger Seat gtalover12 Filterscripts 10 25/12/2010 10:52 PM
NPC in passenger seat Celson Help Archive 4 12/12/2010 01:26 AM
Is it possible to get a NPC in a passenger seat of a vehicle? Celson Help Archive 8 13/04/2010 03:10 PM
Jump to passenger seat ded Help Archive 6 16/12/2009 10:28 PM
Not allowing me to enter the passenger seat in vehicles. Smokey_lsrp Client Support 3 26/09/2009 09:23 PM


All times are GMT. The time now is 09:46 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.