SA-MP Forums Archive
[FilterScript] w_objects - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] w_objects (/showthread.php?tid=485099)



w_objects - Wan - 02.01.2014

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>
The include is downloadable, it's in the package with w_objects.pwn and w_objects.amx.


Features:
~ Object's movement speed: 3 (changeable)

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:
This is a dialog of /CreateObject command, this is how it looks like when You're creating a object (2):



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:

* 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


Re: w_objects - [SU]Spartan - 02.01.2014

Cool +1 rep


Re: w_objects - Wan - 02.01.2014

Quote:
Originally Posted by [SU]Spartan
Посмотреть сообщение
Cool +1 rep
Thank You.


Re: w_objects - [SU]Spartan - 02.01.2014

Aww cant add u rep on phone,I will add u when I go on PC 4 HOURS


Re: w_objects - DeathFire - 02.01.2014

Quote:
Originally Posted by [SU]Spartan
Посмотреть сообщение
Cool +1 rep
you can't give rep -.-


Re: w_objects - Pottus - 03.01.2014

This is coded pretty poorly no dynamic design.


Re: w_objects - Wan - 03.01.2014

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
This is coded pretty poorly no dynamic design.
I added dymanic design, You'll see when V.0.2. is released.

Some of the features from V.0.2, I already added:
It's still not fully done, still need to add some options in dialogs.


Re: w_objects - NickHaudMTA - 03.01.2014

Man, awesome!

Also, don't listen to this [uL]Pottus idiot, he is posting bad comments everywhere.
Some people should more respect others people effort and work.


Re: w_objects - Pottus - 03.01.2014

Quote:
Originally Posted by NickHaudMTA
Посмотреть сообщение
Man, awesome!

Also, don't listen to this [uL]Pottus idiot, he is posting bad comments everywhere.
Some people should more respect others people effort and work.
Maybe you should read the code first, I'm always honest it's either good, bad and needs some work in this case it's bad and needs some work.

Let me ask you something what good does some comment like "Man, awesome!" do for him? Absolutely nothing so I'll reiterate everything I don't like in this project so he knows what he needs to work on.

- Poor indentation
- Use a command processor like zcmd/ycmd even if you have one command
- Repeat code since dynamic design was not taken into account at all
- Use enums to store object data

The whole design is just bad up to this point I really don't see trying to work with this code being very productive in future versions without re-writing pretty much everything.


Re: w_objects - ViciousRoleplay123 - 03.01.2014

[uL]Pottus is right mate. Try fixing the indentation of your codding next time. And NickHaudMTA, are u a fool? Did you even read the code?