02.01.2014, 23:21
(
Последний раз редактировалось Wan; 05.01.2014 в 19:54.
)
w_objects
Wan's in-game objects system
VERSION: V.0.1.
This project is marked as a dud.
Download link has been removed.
This system is not downloadable anymore.
This theard will be updated with a new download link of a newer fixed version. (V.0.2.)
As You can see this is a "In-game objects system".
Very efficient, effective and simple system to: CreateObject, MoveObject, SetObjectRot, StopObject, DestroyObject, and all the other system's features, in-game!
You're able to create maximum 2 objects in-game.
Also, after destroying the object/objects, You will be able to create a new object/objects again.
* Note: You cannot create the object 1 if the object 1 already exists.
Only RCON logged-in administrators are able to use w_objects. Make it to corrseponds to the admin system You're using, if You wish.
If not RCON logged-in:
Код:
SendErrorMessage(playerid);
Код:
[w_objects]: You're not allowed to use this command!
Includes:
~ The only include needed is "w_objects.inc".
pawn Код:
#include <WAN/w_objects>
Features:
- Change object's movement speed
- Teleport to object's current position
- Teleport the object to Yourself's current position
- Destroy all objects in the same time
- Enable/Disable object's notifications
- Check Your object's status
- Create object at Your current position/location
- Move object to the selected direction
- Rotate object - Rotations: X, Y, Z
- Stop object movements if is object moving
- Destroy object and make the object's slot available for a new object
- Check w_objects commands list/settings/options
Object's movement speed changed:
~ Notifications option: disabled - OnFilterScriptInit. (changeable)
This is the list of all w_object's notifications:
This is a "object created" notification:
MY OBJECT'S STATUS:
Commands:
- /CreateObject - creates a selected object. (Selecting object by the object's ID)
- /MoveObject - moves a selected object, also selected direction.
- /RotateObject - rotates a selected object, selected rotation - RotX, RotY, RotZ.
- /StopObject - stops a selected object, if is the object moving.
- /DestroyObject - destroys a selected object, if object exists and makes the slot available (create a new object).
- /w_objects - settings/commands list/options/etc...
This is a dialog of /RotateObject command, this is how it looks like when You're rotating a object:
RotX (Rotation X):
Selecting which of 3 object's rotations to change/modify:
Errors:
- [ODE] - Object doesnt exists.
- [EO] - Editing object - object doesn't exists.
- [DO] - Destroy object - object doesn't exists.
- [NEAO] - Not editing any object - currently not editing any object.
- [RO] - Rotate object - object doesn't exists.
- [MO] - Move object - object doesn't exists.
- [STTO1] - Negative - successfully teleported to object 1 - object doesn't exists.
- [STTO2] - Negative - successfully teleported to object 2 - object 2 doesn't exitsts.
- [DF1] - Negative - successfully teleported the object to You 1 - object doesn't exists.
- [DF2] - Negative - successfully teleported the object to You 2 - object doesn't exists.
* Note: All errors are in this format.
This is an example of the error [ODE]:
Known bugs:
~ There are no bugs nor typos. The system is tested very well, and no bugs nor typos weren't found.
~ But still, if You find anything please message/notify me and I'll give me best to fix it and re-upload it.
Download:
This version of w_object is marked as a dud.
It is not downloadable anymore, this theard/download link will be updated when V.0.2. is released.
Installation:
How to install w_objects in a 3 simple steps:
1. Copy w_objects.pwn and w_objects.amx - Paste it in Your server's folder > filterscripts.
2. Copy "WAN" folder - Paste it in Your server's folder > pawno > include.
3. Open server.cfg - add: "w_objects" (filterscripts).
4. You're done.
Special thanks to SA-MP Forums - scripting help!
New features coming with newer versions/updates, by saying "new features" I also meant You'll be able to create more objects, etc... (w_objects V.0.2 in a progress!)
~ Wan