Object interior - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Object interior (
/showthread.php?tid=372904)
Object interior -
GTAprogamer111 - 28.08.2012
Hello. My question is how to change object interior?
pawn Код:
CreateObject(2933,2219.00000000,-1151.40002441,1026.50000000,0.00000000,0.00000000,90.00000000); //object(pol_comp_gate) (1)
CreateObject(2933,2219.00000000,-1145.30004883,1026.50000000,0.00000000,0.00000000,90.00000000); //object(pol_comp_gate) (2)
Re: Object interior -
avivelkayam - 28.08.2012
the object is show in all the interior
Re: Object interior -
GTAprogamer111 - 28.08.2012
No it's not. I want them to be in Interior 11, but they are in interior 0.
Re: Object interior -
Akira297 - 28.08.2012
Quote:
Originally Posted by GTAprogamer111
No it's not. I want them to be in Interior 11, but they are in interior 0.
|
What streamer are you using?
Код:
CreateObject(2933,2219.00000000,-1151.40002441,1026.50000000,0.00000000,0.00000000,90.00000000, .interiorid = [YOURINTERIORID]);
Re: Object interior -
avivelkayam - 28.08.2012
yes id does,
are you using streamer?
maby in the streamer has a option to change interior...
Re: Object interior -
Akira297 - 28.08.2012
Please, review my previous post as I have modified it.
Re: Object interior -
kbalor - 28.08.2012
pawn Код:
#include <streamer>
CreateDynamicObject(2933,2219.00000000,-1151.40002441,1026.50000000,0.00000000,0.00000000,90.00000000,-1,6,-1,300.0); //object(pol_comp_gate) (1)
CreateDynamicObject(2933,2219.00000000,-1145.30004883,1026.50000000,0.00000000,0.00000000,90.00000000,-1,6,-1,300.0); //object(pol_comp_gate) (2)
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
You could change the 6 (Interior ID) in,-1,6,-1,300.0); into whatever you want.
Link for the Steamer: http://samp-streamer-plugin.******co...v2_6_1_r78.zip
.......
Re: Object interior -
Akira297 - 28.08.2012
Quote:
Originally Posted by kbalor
pawn Код:
#include <streamer>
CreateDynamicObject(2933,2219.00000000,-1151.40002441,1026.50000000,0.00000000,0.00000000,90.00000000,1,-1,-1,300.0); //object(pol_comp_gate) (1) CreateDynamicObject(2933,2219.00000000,-1145.30004883,1026.50000000,0.00000000,0.00000000,90.00000000,1,-1,-1,300.0); //object(pol_comp_gate) (2)
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
|
You don't need 'playerid = -1'
Код:
CreateObject(2933,2219.00000000,-1151.40002441,1026.50000000,0.00000000,0.00000000,90.00000000, .interiorid = 0, .worldid = 0, .streamdistance = 75);
Edit the '0's to your specification'
Re: Object interior -
Lordzy - 28.08.2012
You can use streamer.
Or else
Use SetObjectPos.
Learn more:
wiki.sa-mp.com/wiki/SetObjectPos
Re: Object interior -
GTAprogamer111 - 28.08.2012
Some reasons none of those options works.