20.06.2009, 05:40
My brand new in-game object editor, loaded with commands.
Special features: players can edit objects without interrupting other players objects, a players camera is always focused on the currently selected object, unless they stop editing/deselect it, you can use the arrow keys to edit the objects pos/rot or you can edit the object with text commands, you can set the absolute position of the object with text as well as moving it a selected increment, there's probably more stuff, but i forgot about it because I've been working on this for a while.
NEW
In-Game object search! search through the entire SA-MP object list to find objects that you need,
just use /objsearch [search term] and it will print out a list of all object names containing your search term.
Installation
Just put the .amx in to your "filterscripts" directory, then go into the server.cfg file and put "ObjectEditor" in your filterscript list, or when you are in game, log into RCon and use RCon command /rcon loadfs ObjectEditor if you plan to use the /objsearch function, you need to down load the objlist.txt file and put it into your scriptifiles directory.
Commands:
__________________________________________________ __________________________________________________
/newobj [model id] [object description (for later use)] - creates a new object and attaches it to you.
__________________________________________________ __________________________________________________
/detach (no parameters) - detaches the currently selected object from you, if it is attached.
__________________________________________________ __________________________________________________
/attach (no parameters) - attaches the currently selected object to you.
__________________________________________________ __________________________________________________
/dupobj (no parameters) - duplicates the currently selected object.
__________________________________________________ __________________________________________________
/stopediting (no parameters) - deselects the currently selected objec.
__________________________________________________ __________________________________________________
/objlist (no parameters) - gives you a list of all objects created with tacomaker during the current session, giving you the object id, model id, and description of the object.
__________________________________________________ __________________________________________________
/editobj [object id] - selects an object by object id.
__________________________________________________ __________________________________________________
/editinc [any number] - sets the increment(distance) that the selected object will move when you move it with your arrow keys or by text command.
__________________________________________________ __________________________________________________
/mode [XY, Z, R_XY, or R_Z] - sets the mode that you will be editing by with the arrow keys, XY: position on the x and y axist, Z:
position on the z axis, R_XY: rotation of the X and Y axis, R_Z: rotation of the Z axis.
__________________________________________________ __________________________________________________
/delobj (no parameters) - deletes the currently selected object.
__________________________________________________ __________________________________________________
/saveobj (no parameters) - saves the currently selected object in Pawno format to /savedobjects.txt, if the file doesn't exist, it will be created before saving.
__________________________________________________ __________________________________________________
/moveobjtome (no parameters) - moves the currently selected object to your location.
__________________________________________________ __________________________________________________
/setobjx [any number] - sets the objects position on the x axis to the specified number.
__________________________________________________ __________________________________________________
/setobjy [any number] - sets the objects position on the y axis to the specified number.
__________________________________________________ __________________________________________________
/setobjz [any number] - sets the objects position on the z axis to the specified number.
__________________________________________________ __________________________________________________
/setobjrx [any number] - sets the objects rotation on the x axis to the specified number.
__________________________________________________ __________________________________________________
/setobjry [any number] - sets the objects rotation on the y axis to the specified number.
__________________________________________________ __________________________________________________
/setobjrz [any number] - sets the objects rotation on the z axis to the specified number.
__________________________________________________ __________________________________________________
/x [any number] - moves the currently selected object plus the specified number on the x axis (use a negative number if you would like to move the object backwards).
__________________________________________________ __________________________________________________
/y [any number] - moves the currently selected object plus the specified number on the y axis (use a negative number if you would like to move the object backwards).
__________________________________________________ __________________________________________________
/z [any number] - moves the currently selected object plus the specified number on the z axis (use a negative number if you would like to move the object down).
__________________________________________________ __________________________________________________
/rx [any number] - rotates the currently selected object plus the specified number on the x axis (use a negative number if you would like to rotate the object backwards).
__________________________________________________ __________________________________________________
/ry [any number] - rotates the currently selected object plus the specified number on the y axis (use a negative number if you would like to rotate the object backwards).
__________________________________________________ __________________________________________________
/rz [any number] - rotates the currently selected object plus the specified number on the x axis (use a negative number if you would like to rotate the object backwards).
__________________________________________________ __________________________________________________
Credits
Everything - toccovender
yes, i did all of this, give me some credit :P
Hope you guys like it, please tell me if i forgot anything/there are any errors
DL links:
V1.1
pastebin: http://pastebin.com/f3a67245e
V1.0
Special features: players can edit objects without interrupting other players objects, a players camera is always focused on the currently selected object, unless they stop editing/deselect it, you can use the arrow keys to edit the objects pos/rot or you can edit the object with text commands, you can set the absolute position of the object with text as well as moving it a selected increment, there's probably more stuff, but i forgot about it because I've been working on this for a while.
NEW
In-Game object search! search through the entire SA-MP object list to find objects that you need,
just use /objsearch [search term] and it will print out a list of all object names containing your search term.
Installation
Just put the .amx in to your "filterscripts" directory, then go into the server.cfg file and put "ObjectEditor" in your filterscript list, or when you are in game, log into RCon and use RCon command /rcon loadfs ObjectEditor if you plan to use the /objsearch function, you need to down load the objlist.txt file and put it into your scriptifiles directory.
Commands:
__________________________________________________ __________________________________________________
/newobj [model id] [object description (for later use)] - creates a new object and attaches it to you.
__________________________________________________ __________________________________________________
/detach (no parameters) - detaches the currently selected object from you, if it is attached.
__________________________________________________ __________________________________________________
/attach (no parameters) - attaches the currently selected object to you.
__________________________________________________ __________________________________________________
/dupobj (no parameters) - duplicates the currently selected object.
__________________________________________________ __________________________________________________
/stopediting (no parameters) - deselects the currently selected objec.
__________________________________________________ __________________________________________________
/objlist (no parameters) - gives you a list of all objects created with tacomaker during the current session, giving you the object id, model id, and description of the object.
__________________________________________________ __________________________________________________
/editobj [object id] - selects an object by object id.
__________________________________________________ __________________________________________________
/editinc [any number] - sets the increment(distance) that the selected object will move when you move it with your arrow keys or by text command.
__________________________________________________ __________________________________________________
/mode [XY, Z, R_XY, or R_Z] - sets the mode that you will be editing by with the arrow keys, XY: position on the x and y axist, Z:
position on the z axis, R_XY: rotation of the X and Y axis, R_Z: rotation of the Z axis.
__________________________________________________ __________________________________________________
/delobj (no parameters) - deletes the currently selected object.
__________________________________________________ __________________________________________________
/saveobj (no parameters) - saves the currently selected object in Pawno format to /savedobjects.txt, if the file doesn't exist, it will be created before saving.
__________________________________________________ __________________________________________________
/moveobjtome (no parameters) - moves the currently selected object to your location.
__________________________________________________ __________________________________________________
/setobjx [any number] - sets the objects position on the x axis to the specified number.
__________________________________________________ __________________________________________________
/setobjy [any number] - sets the objects position on the y axis to the specified number.
__________________________________________________ __________________________________________________
/setobjz [any number] - sets the objects position on the z axis to the specified number.
__________________________________________________ __________________________________________________
/setobjrx [any number] - sets the objects rotation on the x axis to the specified number.
__________________________________________________ __________________________________________________
/setobjry [any number] - sets the objects rotation on the y axis to the specified number.
__________________________________________________ __________________________________________________
/setobjrz [any number] - sets the objects rotation on the z axis to the specified number.
__________________________________________________ __________________________________________________
/x [any number] - moves the currently selected object plus the specified number on the x axis (use a negative number if you would like to move the object backwards).
__________________________________________________ __________________________________________________
/y [any number] - moves the currently selected object plus the specified number on the y axis (use a negative number if you would like to move the object backwards).
__________________________________________________ __________________________________________________
/z [any number] - moves the currently selected object plus the specified number on the z axis (use a negative number if you would like to move the object down).
__________________________________________________ __________________________________________________
/rx [any number] - rotates the currently selected object plus the specified number on the x axis (use a negative number if you would like to rotate the object backwards).
__________________________________________________ __________________________________________________
/ry [any number] - rotates the currently selected object plus the specified number on the y axis (use a negative number if you would like to rotate the object backwards).
__________________________________________________ __________________________________________________
/rz [any number] - rotates the currently selected object plus the specified number on the x axis (use a negative number if you would like to rotate the object backwards).
__________________________________________________ __________________________________________________
Credits
Everything - toccovender
yes, i did all of this, give me some credit :P
Hope you guys like it, please tell me if i forgot anything/there are any errors
DL links:
V1.1
pastebin: http://pastebin.com/f3a67245e
V1.0