How to apply no animation in bunny hop
#1

pawn Код:
/*                                                                              Josh's RP Bunny Hop Stop -- Josh Beverly 11/20/11
                                                                                                                Please do NOT remove credits!                                           */



#include <a_samp>

#define FILTERSCRIPT
#if defined FILTERSCRIPT

#define COLOR_LIGHTBLUE 0x33CCFFAA

#define SCM SendClientMessage

new PlayerPressedJump[MAX_PLAYERS];

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" RP Bunny Hop Stop By Josh Beverly");
        print("--------------------------------------\n");
        return 1;
}
public OnPlayerConnect(playerid)
{
        PlayerPressedJump[playerid] = 0; // Sets variable to 0 when they first connect
        return 1;
}
forward PressJump(playerid);
public PressJump(playerid)
{
    PlayerPressedJump[playerid] = 0; // Reset the variable
    ClearAnimations(playerid);
    return 1;
}
forward PressJumpReset(playerid);
public PressJumpReset(playerid)
{
    PlayerPressedJump[playerid] = 0; // Reset the variable
    return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        if((newkeys & KEY_JUMP) && !IsPlayerInAnyVehicle(playerid))
        {
        PlayerPressedJump[playerid] ++;
        SetTimerEx("PressJumpReset", 3000, false, "i", playerid); // Makes it where if they dont spam the jump key, they wont fall

        if(PlayerPressedJump[playerid] == 3) // change 3 to how many jump you want before they fall
        {
            ApplyAnimation(playerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1); // applies the fallover animation
            SCM(playerid, COLOR_LIGHTBLUE, "You just tripped, and fell down!");
            SetTimerEx("PressJump", 9000, false, "i", playerid); // Timer for how long the animation lasts
        }
    }
        return 1;
}
#endif
How to apply no animation in bunny hop
Reply
#2

ClearAnimations(playerid);
Reply
#3

Nope not that one im said that how to apply no animation ex. when you are use /airkick -(You can't do this right now)
Reply
#4

Thanks for this i think you must put a cancel all anims
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)