OnPlayerEditDynamicObject
#1

Hi,

I have furniture system, player can't go out from this teritory. It's working, but sometimes some players find way, to throw object from that teritory... How to prevent this?
Reply
#2

Create area in this place.

Код:
if( response == EDIT_RESPONSE_FINAL )
{
      if( !IsPointInDynamicArea(areaid), x, y, z) )
      {
             SendClientMessage(playerid, -1, "You can't move this object here.");
             SetDynamicObjectPos(objectid, oldX, oldY, oldZ);
	     SetDynamicObjectRot(objectid, oldRotX, oldRotY, oldRotZ);
             return 1;
      }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)