12.03.2012, 06:34
pawn Код:
new newcar = GetPlayerVehicleID(playerid);
if(newkeys & KEY_SPRINT)
{
if(gPlayerUsingLoopingAnim[playerid] == 1)
{
gPlayerUsingLoopingAnim[playerid] = 0;
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
animation[playerid] = 0;
TextDrawHideForPlayer(playerid,txtAnimHelper);
}
}
if(IsAnOwnableCar(newcar))
{
if(PlayerInfo[playerid][pPcarkey] == newcar) { }
else if(PlayerInfo[playerid][pPcarkey2] == newcar) { }
else if(PlayerInfo[playerid][pPcarkey3] == newcar) { }
else { return 1; }
}