Boxs on hands
#1

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?
Reply
#2

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;
}
Reply
#3

Next time, use map editor to get coordinates.
Reply
#4

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

I finish ty all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)