OnPlayerEditDynamicObject
#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


Messages In This Thread
OnPlayerEditDynamicObject - by MerryDeer - 05.10.2016, 17:47
Re: OnPlayerEditDynamicObject - by Rdx - 06.10.2016, 16:13

Forum Jump:


Users browsing this thread: 1 Guest(s)