how to change the crouch key to other keys because when i want to crouch its just like im playing basketball
pawn Код:
if ((newkeys & KEY_CROUCH) && !(oldkeys & KEY_CROUCH) && !IsPlayerInAnyVehicle(playerid))
{
if(HavingBall[playerid])
{
ApplyAnimation(playerid,"BSKTBALL","BBALL_idleloop",4.1,1,1,1,1,1);
}
else
{
ApplyAnimation(playerid,"BSKTBALL","BBALL_def_loop",4.0,1,0,0,0,0);
}
Anim[playerid] = 1;
}
if (!(newkeys & KEY_CROUCH) && (oldkeys & KEY_CROUCH) && !IsPlayerInAnyVehicle(playerid))
{
ClearAnimations(playerid);
Anim[playerid] = 0;
}