16.10.2014, 22:00
I currently have a function witch does blah blah.. and i need to way if this fuction is active, like uhm lets say the player under the effect of animation to disable jumping. (but i need the animation run anyways)
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_JUMP)
{
if(Disabled[playerid])
{
new Float: pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
ClearAnimations(playerid);
return 1;
}
}
return 1;
}