SA-MP Forums Archive
[FilterScript] Jbobjects - 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] Jbobjects (/showthread.php?tid=432060)



Jbobjects 1.6 - horsemeat - 20.04.2013

Jbobjects
v1.6


Uses

I would use this script if you use MTA as your map editor and don't have access
to samps exclusive objects.
also would use this for objects you want to keep for a limited time example barriers

Features

include
Up coming Features Maybe
Updates

Update 1.6
Update 1.5
Update 1.4R1
Update 1.4
Update 1.3R1
Update 1.3
Update 1.2
Update 1.1
Bugs



Re: Jbobjects - BigGroter - 20.04.2013

Create this for y_ini and I'm sold!


Re: Jbobjects - horsemeat - 20.04.2013

Quote:
Originally Posted by BigGroter
View Post
Create this for y_ini and I'm sold!
I don't no how to use y_ini but I can learn why what is the difference between them. Well the script works fine so no need to change


Re: Jbobjects - Pottus - 21.04.2013

It shouldn't really matter too much what ini system you use for a tool efficiency doesn't really make a difference with something like this. Anyways it looks fairly decent but you really need some technical based commands for object movement - /ox /oy /oz /rx /ry /rz the built in editor is pretty shitty at precision in that you can't get an exact rotation like 90 or 180. Drop me a private message if you want to check out my map editor for some ideas, it will never be publicly released keep in mind.


Re: Jbobjects - horsemeat - 21.04.2013

Quote:
Originally Posted by [uL]Pottus
View Post
It shouldn't really matter too much what ini system you use for a tool efficiency doesn't really make a difference with something like this. Anyways it looks fairly decent but you really need some technical based commands for object movement - /ox /oy /oz /rx /ry /rz the built in editor is pretty shitty at precision in that you can't get an exact rotation like 90 or 180. Drop me a private message if you want to check out my map editor for some ideas, it will never be publicly released keep in mind.
Thanks I will make a command like this in the next update


Re: Jbobjects - Pottus - 21.04.2013

There are other useful commands as well =)

/dx /dy /dz - Delta move the whole map
/oswap - swap an object for another
/ocolor - set the color of an object

There is a lot more but I don't want to overwhelm you with too many commands!


Re: Jbobjects - horsemeat - 21.04.2013

Quote:
Originally Posted by [uL]Pottus
View Post
There are other useful commands as well =)

/dx /dy /dz - Delta move the whole map
/oswap - swap an object for another
/ocolor - set the color of an object

There is a lot more but I don't want to overwhelm you with too many commands!
What is Delta move the whole map mean

and I had No idea you could set the color of objects does it work on all object can you explain a little more


Re: Jbobjects - Pottus - 21.04.2013

https://sampwiki.blast.hk/wiki/SetObjectMaterial

For color you use

SetObjectMaterial(myobject, 0, -1, "none", "none", 0xFF00FF00); // Sets the object color on material slot 0 to green

It won't set a solid color it's just a color filter, there are two ways to get a solid color you can use
https://sampwiki.blast.hk/wiki/SetObjectMaterialText the second color parameter is the background color or you can use this.

This will set the material to a solid white and the color parameter will set the color giving you a solid color which would be green in this case.
SetObjectMaterial(myobject, 0, 2707, "Shopping", "white", 0xFF00FF00);


Re: Jbobjects - horsemeat - 21.04.2013

Quote:
Originally Posted by [uL]Pottus
View Post
https://sampwiki.blast.hk/wiki/SetObjectMaterial

For color you use

SetObjectMaterial(myobject, 0, -1, "none", "none", 0xFF00FF00); // Sets the object color on material slot 0 to green

It won't set a solid color it's just a color filter, there are two ways to get a solid color you can use
https://sampwiki.blast.hk/wiki/SetObjectMaterialText the second color parameter is the background color or you can use this.

This will set the material to a solid white and the color parameter will set the color giving you a solid color which would be green in this case.
SetObjectMaterial(myobject, 0, 2707, "Shopping", "white", 0xFF00FF00);
Thanks I should use SetDynamicObjectMaterial since I am useing streamer


Re: Jbobjects - horsemeat - 21.04.2013

Quote:
Originally Posted by [uL]Pottus
View Post
https://sampwiki.blast.hk/wiki/SetObjectMaterial

For color you use

SetObjectMaterial(myobject, 0, -1, "none", "none", 0xFF00FF00); // Sets the object color on material slot 0 to green

It won't set a solid color it's just a color filter, there are two ways to get a solid color you can use
https://sampwiki.blast.hk/wiki/SetObjectMaterialText the second color parameter is the background color or you can use this.

This will set the material to a solid white and the color parameter will set the color giving you a solid color which would be green in this case.
SetObjectMaterial(myobject, 0, 2707, "Shopping", "white", 0xFF00FF00);
There you are I made an update useing your suggestions