[FilterScript] Anti Bunny Hoop (Good for RP) - 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: Filterscripts (
https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Anti Bunny Hoop (Good for RP) (
/showthread.php?tid=430530)
Anti Bunny Hoop (Good for RP) -
sconer - 14.04.2013
Hello, i made an easy filterscript - "Anti-Bunnyhoop". There's download link:
http://www.failai.lt/bsret0i6tb8p/bhop.rar.htm
Re: Anti Bunny Hoop (Good for RP) -
Jstylezzz - 14.04.2013
Err.. Really?
So, why adding this:
pawn Code:
#define HOLDING(%0) ((newkeys & (%0)) == (%0))
#define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerSpawn(playerid)
{
ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1, 0, 1, 1, 0, 0);
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (HOLDING(oldkeys, KEY_SPRINT) && PRESSED(newkeys, KEY_JUMP)){
ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1, 0, 1, 1, 0, 0);
}
return 1;
}
Into a Filterscript? It would have been better if you made a tutorial, or if you posted this in the snippets section, because for such small code, there is no Filterscript needed (You can use max. 14 FS's as I recall, so it would just take up space for people using much FS's).
Don't see my post as critisism, but as constructive criticism
Re: Anti Bunny Hoop (Good for RP) -
wups - 14.04.2013
It's bunny hop, and there is an easy workaround for this security: release the sprint key when you jump.
Re: Anti Bunny Hoop (Good for RP) -
Isolated - 14.04.2013
Quote:
Originally Posted by Jstylezzz
Err.. Really?
So, why adding this:
pawn Code:
#define HOLDING(%0) ((newkeys & (%0)) == (%0)) #define PRESSED(%0) (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerSpawn(playerid) { ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1, 0, 1, 1, 0, 0); return 1; }
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if (HOLDING(oldkeys, KEY_SPRINT) && PRESSED(newkeys, KEY_JUMP)){ ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1, 0, 1, 1, 0, 0); } return 1; }
Into a Filterscript? It would have been better if you made a tutorial, or if you posted this in the snippets section, because for such small code, there is no Filterscript needed (You can use max. 14 FS's as I recall, so it would just take up space for people using much FS's).
Don't see my post as critisism, but as constructive criticism
|
I agree, although, I believe it's 16 filterscripts now, however still a waste of filterscript slots.
Re: Anti Bunny Hoop (Good for RP) -
IndependentGaming - 17.04.2013
3 Errors
Quote:
(4) : warning 235: public function lacks forward declaration (symbol "OnPlayerSpawn")
(6) : error 017: undefined symbol "ApplyAnimation"
(10) : warning 235: public function lacks forward declaration (symbol "OnPlayerKeyStateChange")
(12) : error 017: undefined symbol "KEY_SPRINT"
(13) : error 017: undefined symbol "ApplyAnimation"
3 Errors.
|
So go work on it.