23.01.2011, 21:47
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_SPRINT)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerWeapon(playerid) != 29)
{
ApplyAnimation(playerid, "CARRY", "crry_prtial", 2.0, 0, 0, 0, 0, 0);
}
else if(GetPlayerWeapon(playerid) == 29)
{
return 1;
}
}
}
return 0;
}