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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)