How To - Stop Entering Vehicle While Surfing Bug
#1

All of you have probably noticed that 0.3 has a bug where you can enter a vehicle while surfing on it by simply pressing F, Enter, or G.

So I decided to make something to stop it!

The fix is very easy and simple.
The following code checks if the player is entering the vehicle they are surfing on, if so it will clear their animation of entering the vehicle stopping this bug.

Code:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if (GetPlayerSurfingVehicleID(playerid) == vehicleid)
    {
        ClearAnimations(playerid);
    }
    return 1;
}
Feel free to add it into your gamemodes and happy scripting.
Reply
#2

*Bump*

was on 4th page and no comments D:
Reply
#3

Didn't know of this bug, until now.
So thanks for sharing a fix.
Reply
#4

I never actually noticed this tough but I will use it, nice idea
Reply
#5

Quote:
Originally Posted by Kaboose
I never actually noticed this tough but I will use it, nice idea
Me either. Anyways, nice job ethan.
Reply
#6

Ye, i justed it to get into Locked Cars or Cars that Would Remove you from it :>
Reply
#7

Nice one. This bug annoyed me quite abit. Thank You.
Reply
#8

Interesting, nice for this.
Reply
#9

What do you mean surfing a vehicle?
Reply
#10

When you are standing over it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)