Carrying and Pickup - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Carrying and Pickup (
/showthread.php?tid=583929)
Carrying and Pickup -
cnoopers - 31.07.2015
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;
}
}
Re: Carrying and Pickup -
Mariciuc223 - 01.08.2015
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 ...