[FilterScript] Anti Bunny Hoop (Good for RP)
#1

Hello, i made an easy filterscript - "Anti-Bunnyhoop". There's download link:
http://www.failai.lt/bsret0i6tb8p/bhop.rar.htm
Reply
#2

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
Reply
#3

It's bunny hop, and there is an easy workaround for this security: release the sprint key when you jump.
Reply
#4

Quote:
Originally Posted by Jstylezzz
View Post
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.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)