[FilterScript] [0.3x] zDivines Dynamic Object System [zObjects]
#1

zDivines Dynamic Object System [zObjects]

Script Release: 20130515 (YYYYMMDD)
Current Script Version: 1.4


Features:
  • Fully dynamic object creation, deletion, and saving/loading.
  • Authorization system, allowing only authorized users to use zObjects.
  • Ability to set objects movable or not.
  • Dynamic return interval for movable objects.
  • Uses the new object editor.
  • Ability to set a password on objects. (If no password is set, the object will move by simply typing the command, otherwise it will prompt for a password upon typing the command.)
Commands:
  • /login [password] - Login to zObjects to use the commands.
  • /createobject [modelid] - Creates an object with the specified model ID.
  • /destroyobject [objectid] - Destroys the specified object.
  • /editobject [objectid] [option] [value(optional)] - Object editing command with various options.
    Options: Model, Movable(0 = no / 1 = yes), Speed, Range, AutoMove, Pos, PosM, ReturnTime
  • /objectpass [password] - Sets a password for the object when moving it.
  • /objectnear - Sends you a list of objects within 30 meters of you.
  • /moveobject - Moves the object if moveable (Prompts for password if object is passworded.)
  • /authorize [playerid] - Authorizes a player to use zObjects.
  • /deauthorize [playerid] - Deauthorizes a player to use zObjects.
    * New in version 1.4 *
  • /gotoobject [objectid] - Allows you to teleport to any dynamic object.
Required Includes:
  • ZCMD - Credits to Zeex
  • Sscanf2 - Credits to Y_Less
  • Streamer - Credits to Incognito
Installation:
  1. Move "zObjects.amx" to your filterscripts folder.
  2. Create a file named "zobjects.cfg" and move it to your scriptfiles folder.
  3. Add "zObjects" to your filterscripts line in your server.cfg.
  4. Make sure you have zcmd, streamer, and sscanf plugins on your plugins line.
  5. Restart your server, and ENJOY!
  6. DO NOT FORGET TO CHANGE 'ZOBJECTS_PASS' TO WHAT YOU WANT THE PASSWORD TO BE FOR LOGGING IN.
Changelog:

v1.0:
  • Initial release
v1.1:
  • Fixed a bug where the object wouldn't move if a pass wasn't set.
  • Fixed a bug where the object wouldn't move if you tried to manually move it from it's moved location and it
    wasn't within the radius of the original position.
  • Fixed a bug where /login ignored password casing.
  • Fixed a grammatical error where the range said you updated your speed.
  • Fixed some other minor grammatical errors.
v1.2
  • Fixed a bug where edited objects didn't move for all players.
  • Changed the permissions for RCON and authorized users.
v1.3
  • Fixed a bug where edited objects weren't saving correctly in different virtual worlds and interiors.
  • Tweaked the /login command, preventing multiple logins from the same user.
v1.4
  • Added the ability to copy an object using /editobject [id] copy.
  • Added the command /gotoobject to teleport to any dynamic object.
Contact:
  • Skype: mercenary.usa
  • SA-MP: PM

Download:
Reply
#2

nice one
Reply
#3

If anyone has any suggestions for this script, please feel free to let me know.
Reply
#4

Does it update the new position after editing the object for all players?
Reply
#5

Quote:
Originally Posted by Rajat_Pawar
View Post
Does it update the new position after editing the object for all players?
Yes, already tested that.
Reply
#6

nice script, though there exists many like object editor scripts..
i liked the idea of password on object xD

Nice signature btw ;o [ idk just look good ], a no TIPped pyramid
nvm goodwork keep it up!
Reply
#7

Good work eat some rep!
Reply
#8

Erorrs..
Reply
#9

In pwn file when i am going to edit password it says this: C:\Users\Filip\Downloads\zObjects.pwn(15) : fatal error 100: cannot read from file: "sscanf"

What to do?

Please help me.
Reply
#10

I have a problem my objects lose there editing when I logout or restart the server, like they lose their pos edit.
Reply
#11

Why not register objects
Reply
#12

Why not register objects
Reply
#13

Doesn\'t save object for all players.
Reply
#14

So, yes. After over 2 years, I finally came back and updated this filterscript. I fixed some bugs that I noticed, and some that were reported to me and I never got around to fixing it, as I left SAMP for a while.


Anyways, the filterscript is now updated, tested, and working! Enjoy!
Reply
#15

The object system has been updated again to v1.2, addressing some minor issues.
Reply
#16

Version 1.3 has been released, addressing another discovered bug, and the tweaking of a command. Enjoy!
Reply
#17

Nice Bro REP +1
Reply
#18

Version 1.4 has been released.

v1.4
  • Added the ability to copy an object using /editobject [id] copy.
  • Added the command /gotoobject to teleport to any dynamic object.
Reply
#19

why in my server is not functioning
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)