06.06.2016, 07:44
Hi
I want in onplayerupdate getplayerkeys for ex if player press key_fire key_jump.
I want in onplayerupdate getplayerkeys for ex if player press key_fire key_jump.
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(GetPVarInt(playerid, "InAnimation") >= 1 && (newkeys & KEY_SPRINT) && !(oldkeys & KEY_SPRINT))
{
if(GetPVarInt(playerid, "LoopingAnim") >= 1) StopLoopingAnim(playerid);
else
{
ClearAnimations(playerid);
DeletePVar(playerid, "InAnimation");
}
TextDrawHideForPlayer(playerid,AnimationHelper);
}
}