PHP код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
new tmp[128];
format(tmp, 128, "Pos of object: %f, %f, %f | ROT: %f,%f,%f" fX, fY, fZ, fRotX, fRotY, fRotZ);
SendClientMessage(playerid, -1, tmp);
return 1;
}
CMD:box(playerid) { // Next time, use map editor to get coordinates.
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
AttachObjectToPlayer(box1, playerid, 1.5, 0.5, 0.0, 0.0, 1.5, 2);
EditObject(playerid, box1);
return 1;
}