Carrying and Pickup
#1

Hi.
Special action doesn't show hands forward but blocks jumping correctly, why?
Also, second IF is not calling - dockjob[1].
What is wrong?

Код:
	new IsCarrying[MAX_PLAYERS];
    
    if(pickupid == dockjob[0])
    {
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
        SetPlayerAttachedObject(playerid,9,1220,5,0.068999,0.180000,0.167000,-83.800003,2.100003,18.199996,0.580999,0.480998,0.572999);
		IsCarrying[playerid] = true;
	}
    
    if(pickupid == dockjob[1])
    {
        if(IsCarrying[playerid])
        {
            RemovePlayerAttachedObject(playerid, 9);
	        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
			GiveMoney(playerid, 2);
			IsCarrying[playerid] = false;
		}
    }
Reply
#2

Try to

Код:
ClearAnimations(playerid);
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 1, 1, 1, 1, 1);
and when player finish the "carry" , put again ClearAnimations ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)