23.03.2015, 08:43
public OnPlayerEditDynamicObject(playerid, objectid, response, Float
, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
if(!IsValidDynamicObject(objectid)) return 0;
MoveDynamicObject(objectid, x, y, z, 10.0, rx, ry, rz);
if(response == EDIT_RESPONSE_FINAL)
{
//here SetDynamicObjectPos and SetDynamicObjectRot
}
return 1;
}
That's what i try to do. Actually, when i edit a dynamic object (EditDynamicObject), and when i hit save icon from samp GUI it's ok. But if i leave the place where the dynamic object is (respawn/kill/teleport on the map in other places), when i return near the object, it is not to the new position (edited), it is to it's old position. My question is: How to save dynamic object's position..
![angry](images/smilies/mad.gif)
{
if(!IsValidDynamicObject(objectid)) return 0;
MoveDynamicObject(objectid, x, y, z, 10.0, rx, ry, rz);
if(response == EDIT_RESPONSE_FINAL)
{
//here SetDynamicObjectPos and SetDynamicObjectRot
}
return 1;
}
That's what i try to do. Actually, when i edit a dynamic object (EditDynamicObject), and when i hit save icon from samp GUI it's ok. But if i leave the place where the dynamic object is (respawn/kill/teleport on the map in other places), when i return near the object, it is not to the new position (edited), it is to it's old position. My question is: How to save dynamic object's position..