PDA

View Full Version : How do I make an Object Editor script?


Joeyboy99
12/08/2013, 06:45 PM
I have been looking online and I can't find any good object editor filterscripts/gamemodes. All I want it to do is:
/newobject (OBJECT ID) - To spawn the object in front of you (As ID 0)
/object (ID) - To Edit the object

I want it to be the default SAMP edit that was added in 0.3e (The X Y Z move and Rotation http://wiki.sa-mp.com/wroot/images2/b/bf/EditingObject.png )

The objects don't have to save to the script I just want to be able to see the PAWN code for them E.g CreateObject(1337, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);

If someone can help me with this or knows an existing one that works, preferably a Filterscript or Code (Not a Gamemode) then I would be very grateful.
Thanks, Joe.

Max5
12/08/2013, 11:32 PM
Like this?

http://forum.sa-mp.com/showthread.php?t=384195

Naruto_Emilio
12/08/2013, 11:48 PM
First of all, you need 4 includes, sscanf2, zcmd for the command processor, streamer for streaming the objects, and y_ini for saving the stats, now when you got all these, declare them in your script, and then use an enum with objectid, then pos x y z and rotations of the objects, after that make the objects saves copy that from an already done release, then use the command with sscanf to create an object with modelid x y z rotations and world, after that you're done:!

Smxe
13/08/2013, 12:48 AM
I have found multiple for you
(1 click me) (http://forum.sa-mp.com/showthread.php?t=79220)
(2 click me) (https://www.******.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDoQrAIwAA&url=http%3A%2F%2Fforum.sa-mp.com%2Fshowthread.php%3Ft%3D335711&ei=A3QJUunKKeTAiwK2gIHwCQ&usg=AFQjCNGrvLikbCedEcIlKzWbHGICoqxBrg&sig2=eXnhog8vdRl3rEp6cUMCiw)

My ****** search: (click me) (https://www.******.com/search?site=&source=hp&q=samp+ingame+object+editor&oq=GTA+SAMP+in-game+obj&gs_l=hp.3.0.0i22i10i30j0i22i30.643.5201.0.6048.32. 26.5.0.0.0.150.2193.19j7.26.0....0...1c.1.24.hp..2 .30.2177.82WfxioXWRg)

Joeyboy99
14/08/2013, 12:10 AM
Like this?

http://forum.sa-mp.com/showthread.php?t=384195

Thanks! This is the best one I have used the others don't seem to be as good.