SA-MP Forums Archive
Player X,Y,Z Offsets/Rots - 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: Player X,Y,Z Offsets/Rots (/showthread.php?tid=568495)



Player X,Y,Z Offsets/Rots - DRP - 22.03.2015

How can I add this object id to Player's arms?
Код:
   CMD:/pickpizza(playerid,params[])
{
	pTeam[playerid] = team_pizza;
    AttachObjectToPlayer(2814, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
	SendClientMessage(playerid, COLOR_BLUE, "You Just picked up a pizza, head to your pizza bike");
	return 1;
}



Re: Player X,Y,Z Offsets/Rots - Chrillzen - 22.03.2015

Use this.

https://sampforum.blast.hk/showthread.php?tid=182317


Respuesta: Player X,Y,Z Offsets/Rots - alexus - 22.03.2015

I think is better to use SetPlayerAttachedObject. You can select the part of the body where to attach.

https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject