SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
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; }