How can i add interiors?
#1

So im asking how can i add interiors? Like this https://sampforum.blast.hk/showthread.php?tid=327678 This is just an example.I know i have to add the Pawno code to Gamemode and then compile,But how i find the interior in game? I need the interior ID Posx etc..


CreateDynamicObject(7191,2338.39135742,-1182.56323242,1032.95129395,90.00000000,0.00000000 ,90.00000000, -1, 5); //
CreateDynamicObject(13656,2292.93872070,-1132.04724121,1017.29772949,0.00000000,0.00000000, 0.00000000, -1, 5); //
CreateDynamicObject(7191,2337.95458984,-1182.54309082,1032.95129395,90.00000000,0.00000000 ,90.00000000, -1, 5); //
CreateDynamicObject(7191,2338.43408203,-1182.39440918,1032.95129395,90.00000000,180.000000 00,90.24850464, -1, 5); //
CreateDynamicObject(7191,2337.97314453,-1182.39111328,1032.95129395,90.00000000,179.994506 84,90.24719238, -1, 5); //
CreateDynamicObject(7191,2328.80346680,-1180.43066406,1034.70544434,0.00000000,270.0000000 0,88.50006104, -1, 5); //
CreateDynamicObject(3055,2319.78198242,-1184.82641602,1032.36450195,63.75003052,269.999969 48,178.5001220, -1, 5); //
CreateDynamicObject(7191,2328.83715820,-1186.81262207,1030.70446777,0.00000000,90.74990845 ,359.99481201, -1, 5); //
CreateDynamicObject(7191,2326.84863281,-1187.03125000,1030.70446777,0.00000000,90.74707031 ,359.99450684, -1, 5); //
CreateDynamicObject(7191,2337.31689453,-1186.55639648,1030.70446777,0.00000000,90.74707031 ,359.99450684, -1, 5); //
CreateDynamicObject(7191,2339.06689453,-1186.13159180,1030.70446777,0.00000000,91.24694824 ,359.99453735, -1, 5); //
CreateDynamicObject(7191,2338.39062500,-1182.56250000,1032.95129395,90.00000000,0.00000000 ,90.00000000, -1, 5); //
CreateDynamicObject(7191,2337.95947266,-1179.38879395,1032.95129395,90.00000000,180.000000 00,270.00000000, -1, 5); //
CreateDynamicObject(7191,2338.38476562,-1179.43066406,1032.95129395,90.00000000,0.00000000 ,90.00000000, -1, 5); //
CreateDynamicObject(7191,2337.96630859,-1179.23559570,1032.95129395,90.00000000,179.994506 84,90.24719238, -1, 5); //

Tell me how to find the Interior ID,Posz,y,x from that..? :P
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=102865
Код:
CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 200.0);
Reply
#3

They are just objects, so no interior ID will be necessary (unless the interior was built inside an interior?). As for the coordinates, take three random ones from the lines above and use them. If they don't work on the first try, use another lines and so on until you get a proper position. From there, you can save your own to work better.

Example:
Код:
X = 2337.97314453
Y = -1182.39111328
Z = 1032.95129395
You may also want to add a few units to the Z to make sure you aren't spawning inside an object.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)