SA-MP Forums Archive
Boxs on hands - 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: Boxs on hands (/showthread.php?tid=595156)



Boxs on hands - pedrotvr - 28.11.2015

Someone can help me to put this boxes:
2358 id (i think)


On hands using
Код:
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
Like on this first img?


Re: Boxs on hands - MeCom - 28.11.2015

use https://sampwiki.blast.hk/wiki/AttachObjectToPlayer

example:
Код:
new box;

public OnGameModeInit()
{
    box = CreateObject(2358, x, y, z, rotx, roty, rotz);
    return 1;
}

CMD:carrybox(playerid,params[])
{
	SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
	AttachObjectToPlayer(box, playerid, x, y, z, rotx, roty, rotz);
	SendClientMessage(playerid, -1, "you are carrying the box");
	return 1;
}



Re: Boxs on hands - ATGOggy - 29.11.2015

Next time, use map editor to get coordinates.


Re: Boxs on hands - TitanZ - 29.11.2015

Use This https://sampforum.blast.hk/showthread.php?pid=2385649#pid2385649


Re: Boxs on hands - pedrotvr - 29.11.2015

I finish ty all