Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
caki - 23.01.2013
Since i found so many great answer's on this forum and alot of more better script's , i really think it is time for me to release some of it as my appreciation for other people hard work...
Anyway let's cut to the deal shall we.. So with this fiterscript you can create IN game dynamic entrances to the interiors or any place you want. After you create one entrance it's automatically saved to the scriptfiles directory. Also it load's when you restart the server.
What do you need?
To make this script work you need
1. Y_INI Libaries
2. Incognito Streamer
3. Sscanf
Inside download file you have latest versions of above.
1. Download the filterscript and extract it to your server directory
2. Open your server.cgf file and add under filterscripts line DynamicEntrances
3. Start your server and log into as rcon admin
4. Go in front the place you want to set the enter icon and type the command /createentrance
Parameters are next:
pawn Код:
/createentrance [entrancelabel] [exitlabel] [interior] [X] [Y] [Z] [outsideicon] [insideicon]
Example: /createentrance LSPD-ENTRANCE LSPD-GARAGE 6 246.783996 63.900199 1003.640625 1242 1247
Remember the place you are standing is your ENTRANCE and coordinaters you are writing are the exit ones.
This way is done for preloaded game interiors
IMPORTANT: To make entrance at custom interior the best way to done it properly is to do the same as above, just after you done it you might need to change virtual world when you are inside interior. To do this go to scriptfiles/Entrances and edit the entrance you want. Or you can make yourself a small command for thatREAD
Below are saved file parameters. To adjust inside interior virtual worldchange eInsideWorld to the world you want/need to use
pawn Код:
eEntranceLabel = yourlabel
eExitLabel = yourlabel
eEntranceX = 1144.622924
eEntranceY = -1329.693603
eEntranceZ = 13.779999
eEntranceA = 273.065521
eExitX = 1143.471801
eExitY = -1303.865966
eExitZ = 1349.385986
eExitA = 0.000000
eInt = 0
eWorld = 0
eInsideInt = 1
eInsideWorld = 5
eInsideIcon = 1318
eOutsideIcon = 1240
It may look too complicated but belive me it's is quite simple. By the way to enter interior use SUBMISSION KEY (2)
Feedback would be appreaciated. Enjoy...
DOWNLOAD:
DynamicEntrances.rar
P.S Labels over icon are visible after server restart
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
Alex Magaсa - 23.01.2013
Ow Nice Man Keep it up ;0!
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
tannmistann - 23.01.2013
Nice one!
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
MnKPolanD - 24.01.2013
Good job!
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
maho422 - 24.01.2013
Nice but how do i know X Y Z its getting wrong ..
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
caki - 24.01.2013
Quote:
Originally Posted by maho422
Nice but how do i know X Y Z its getting wrong ..
|
Well i don't mean to be rude but if you took five minutes to read what i wrote you should know it. X Y Z are coords of inside interior exit icon and the place where you are standing outside interior is done automaticly. If you use GTA interior's then you have predone coords of interiors and if you want to make it in custom one then use /save function
EDIT: For more info see this
https://sampwiki.blast.hk/wiki/InteriorIDs
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
maho422 - 24.01.2013
No i know that its the cords but when i do /save then take it from there its not correct as in my GM for example , how do i get exact cords for checkpoints and for example spawnpoints ? And those x y z . Is this GTA interiors good to use?
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
caki - 24.01.2013
Quote:
Originally Posted by maho422
No i know that its the cords but when i do /save then take it from there its not correct as in my GM for example , how do i get exact cords for checkpoints and for example spawnpoints ? And those x y z . Is this GTA interiors good to use?
|
Example if you do /save you get
AddPlayerClass(272,-1897.0010,59.8264,1055.1296,91.2325,0,0,0,0,0,0); //test /save
Where;
x= -1897.0010
y = 59.8264
z = 1055.1296
a(ngle)= 91.2325
When you input x y z into /createentrance you do -1897.0010 59.8264 1055.1296
And yes gta interiors are good to use they are default ones as you can see in single player
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
maho422 - 24.01.2013
Okey nice but is it possible to make it when you enter it , you get inside so you dont need to click 2? :P I mean like a checkpoint
Re: Dynamic Entrances/Exits on SUBMISSION KEY Filterscript v1.0 Y_INI, streamer, sscanf ... -
[SF]OutLawZ - 25.01.2013
Would be great if you could make a checkpoint version? Since a lot of us prefer checkpoints