Boxs on hands
#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


Messages In This Thread
Boxs on hands - by pedrotvr - 28.11.2015, 22:35
Re: Boxs on hands - by MeCom - 28.11.2015, 23:01
Re: Boxs on hands - by ATGOggy - 29.11.2015, 05:14
Re: Boxs on hands - by TitanZ - 29.11.2015, 07:47
Re: Boxs on hands - by pedrotvr - 29.11.2015, 11:09

Forum Jump:


Users browsing this thread: 1 Guest(s)