14.04.2013, 09:29
Err.. Really?
So, why adding this:
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
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;
}
Don't see my post as critisism, but as constructive criticism