BMX Mega jump
#1

Hey all
I got kind of big Non-rp in my server - Fucking PG...
When you jump with bike (BMX or mountain bike or whatever) its a huge jump high - you can skip above cars with that. its PG
How can i set a limit for jumping with bike? is this possible?
Reply
#2

I made this about 10 minutes ago for you, This is untested but atleast give this code a try.

Code
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new VehicleID = GetPlayerVehicleID( playerid );
    if(newkeys & KEY_ACTION)
    {
        if(IsPlayerInAnyVehicle( playerid ) && VehicleID == 509 || VehicleID == 481 || VehicleID == 510)
        {
            new Float:PosX, Float:PosY, Float:PosZ; //Slaps the player
            GetPlayerPos( playerid, PosX, PosY, PosZ);
            SetPlayerPos( playerid, PosX, PosY, PosZ+5);
        }
    }
    return 1;
}
PS: As I've seen you said with a limit, I'll try to do it for you, just give me a time
Reply
#3

I will try it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)