22.10.2017, 11:31
Try with this:
PHP код:
ApplyAnimation(playerid, "CARRY", "liftup", 4.0, 0, 1, 1, 0, 0);
PHP код:
forward PickUpCrate(playerid);
public PickUpCrate(playerid)
{
ClearAnimations(playerid);
SetPlayerAttachedObject(playerid, 0, 2358, 6, 0.064999, 0.093999, -0.159999, -107.099945, 0.899992, 76.699989, 1.000000, 1.000000, 1.000000);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
return 1;
}
forward PutDownCrate(playerid);
public PutDownCrate(playerid)
{
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
RemovePlayerAttachedObject(playerid, 0);
return 1;
}