24.06.2013, 15:29
would it be possible to select and in game object by using something like
https://sampwiki.blast.hk/wiki/SelectObject
pawn Код:
SelectObject(playerid)
SelectObject(playerid)
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
{
printf("Player %d selected object %d", playerid, objectid);
if(type == SELECT_OBJECT_GLOBAL_OBJECT)
{
EditObject(playerid, objectid);
}
else
{
EditPlayerObject(playerid, objectid);
}
SendClientMessage(playerid, 0xFFFFFFFF, "You now are able to edit your object!");
return 1;
}