How to apply no animation in bunny hop - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to apply no animation in bunny hop (
/showthread.php?tid=498372)
How to apply no animation in bunny hop -
Lloyde - 03.03.2014
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
Re: How to apply no animation in bunny hop -
tyler12 - 03.03.2014
ClearAnimations(playerid);
Re: How to apply no animation in bunny hop -
Lloyde - 03.03.2014
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)
Re: How to apply no animation in bunny hop -
ChuckyBabe - 04.03.2014
Thanks for this

i think you must put a cancel all anims