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


Messages In This Thread
Carrying and Pickup - by cnoopers - 31.07.2015, 23:03
Re: Carrying and Pickup - by Mariciuc223 - 01.08.2015, 10:05

Forum Jump:


Users browsing this thread: 2 Guest(s)