[FilterScript] Attach objects to vehicles dynamically
#1

Hi,

This is my first 'serious' release and may have some glitches that I will gladly fix in future versions.
Don't be too mean to me!

Quote:

This system allows you to add any model to your vehicle, edit it with the 0.3e object position/rotation editor and attach them to the vehicle.
This system is currently not 'saving' the objects, you can do it by saving the values passed to 'AttachObjectToVehicle' onto your preferred storage system.

I created two pretty self-explanatory commands:
/attachobject [object model] [SAMP Car ID]
/deleteobject [arrayid] [SAMP Car ID]

If you don't know the SAMP ID of the car, just enter the car and write /mycarid

Hope you like the system, just let me know if you find some bugs/improvements, as I will be using this in my server also.

Examples of objects you can add:
Neon tubes: 18647 to 18652


Police lights: 18646


Taxi signs: 19308 to 19311


Car bullhorns: 19314


Hotdog: 19346


Credits to ****** for:
Plugins: sscanf
Includes: YSI (y_commands / y_master)

Pastebin
Compiled FS
sscanf plugin
YSI libraries
Reply
#2

Nice
Reply
#3

Is good but there is any way I can get the neon cooronates to use it for a command ?
Reply
#4

Dont work on me :S Everything is fine as I see but just the commands dont work on my server :S
Reply
#5

Doesnt work at all on my server & on a test one.
Reply
#6

Quote:
Originally Posted by DaniceMcHarley
View Post
Doesnt work at all on my server & on a test one.
I trying it in my localhost server doesnt work, but its work in my friend's server.
Reply
#7

I've found the bug that caused object wont attached (OnPlayerEditObject not called)
The problem is, if you load any FILTERSCRIPT with Streamer Include (by Inconigto on my case) on it, you must unload that filterscript and the script will workfully.
Reply
#8

When i restart my server all car objects gone....
How i can keep it save it when i restart server ?
Reply
#9

Very Nice! Rep!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)