OnPlayerEditDynamicObject - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerEditDynamicObject (
/showthread.php?tid=618418)
OnPlayerEditDynamicObject -
MerryDeer - 05.10.2016
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?
Re: OnPlayerEditDynamicObject -
Rdx - 06.10.2016
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;
}
}