14.04.2013, 09:24
Hello, i made an easy filterscript - "Anti-Bunnyhoop". There's download link:
http://www.failai.lt/bsret0i6tb8p/bhop.rar.htm
http://www.failai.lt/bsret0i6tb8p/bhop.rar.htm
#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;
}
Err.. Really?
So, why adding this: pawn Code:
Don't see my post as critisism, but as constructive criticism |
(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. |