SA-MP Forums Archive
[BUG]EditObject - 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: [BUG]EditObject (/showthread.php?tid=327716)



[BUG]EditObject - Smacky - 22.03.2012

When I'm trying to edit object my friend can't see editing process, and he can't when I done editing too...


Re: [BUG]EditObject - Memoryz - 22.03.2012

You need to use a code to move it, such as this one:

https://sampwiki.blast.hk/wiki/OnPlayerEditObject


Re: [BUG]EditObject - Smacky - 22.03.2012

Can you give me an example?


Re: [BUG]EditObject - Nanory - 22.03.2012

pawn Код:
public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ)
{
    if(!playerobject) // If this is a global object, move it for other players
    {
        if(!IsValidObject(objectid)) return;
        MoveObject(objectid, fX, fY, fZ, 10.0, fRotX, fRotY, fRotZ);
    }
}



Re: [BUG]EditObject - Smacky - 23.03.2012

Oh.. thx )