About OnPlayerEditDynamicObject
#9

This is what I use;
Code:
public OnPlayerEditDynamicObject(playerid, objectid, response, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
	new Float:oldX, Float:oldY, Float:oldZ, Float:oldRotX, Float:oldRotY, Float:oldRotZ;
	GetDynamicObjectPos(objectid, oldX, oldY, oldZ);
	GetDynamicObjectRot(objectid, oldRotX, oldRotY, oldRotZ);
        if(response == EDIT_RESPONSE_FINAL)
        {
	    SetDynamicObjectPos(objectid, x, y, z);
     	    SetDynamicObjectRot(objectid, rx, ry, rz);
        }
	if(response == EDIT_RESPONSE_CANCEL)
	{
	    SetDynamicObjectPos(objectid, oldX, oldY, oldZ);
	    SetDynamicObjectRot(objectid, oldRotX, oldRotY, oldRotZ);
	}
        return 1;
}
Reply


Messages In This Thread
About OnPlayerEditDynamicObject - by Adi007 - 20.03.2015, 19:09
Re: About OnPlayerEditDynamicObject - by Adi007 - 21.03.2015, 13:10
Re: About OnPlayerEditDynamicObject - by mirou123 - 21.03.2015, 13:20
Re: About OnPlayerEditDynamicObject - by Adi007 - 23.03.2015, 08:43
Re: About OnPlayerEditDynamicObject - by Adi007 - 26.03.2015, 10:27
Re: About OnPlayerEditDynamicObject - by Adi007 - 01.04.2015, 08:21
Re: About OnPlayerEditDynamicObject - by bigtigerbeee - 23.04.2015, 06:28
Re: About OnPlayerEditDynamicObject - by JaydenJason - 23.04.2015, 07:03
Re: About OnPlayerEditDynamicObject - by Colhisberg - 23.04.2015, 09:45

Forum Jump:


Users browsing this thread: 1 Guest(s)