28.11.2015, 23:01
use https://sampwiki.blast.hk/wiki/AttachObjectToPlayer
example:
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; }