31.07.2015, 23:03
Hi.
Special action doesn't show hands forward but blocks jumping correctly, why?
Also, second IF is not calling - dockjob[1].
What is wrong?
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;
}
}

