[FS] • [eSystem]: Entrances and Exits builder v0.1 • -
Martin_M - 25.04.2010
_________________________________________________
_________________________________________________
• [eSystem]: Entrances and Exits builder v0.1 •
created by
Martin_M
_________________________________________________
_________________________________________________
Introduction
I was asked to make this system for my couple friends, because they see it in my gamemode and they like it.
This one system is better than in my GM, because i have more experience with this, than when i create this system in my GM. ( to much re-write script to change entrances / exits system. )
Installation- Download the EntrancesExitsSystem.inc
- Put it to Your pawno/includes/
- At the top of Your GameMode put this
Код:
#include <EntrancesExitsSystem>
Functions
Код:
CreateEntrance(enterX,enterY,enterZ,interiorID,interiorX,interiorY,interiorZ);
enterX,
enterY,
enterZ - the coordinates of the entrance
interiorID - the ID of the interior
interiorX,
interiorY,
interiorZ - interior coordinates ( and exit coordinates too )
CreateEntrance function is used at Your GM
OnGameModeInit callback.
Код:
CreateEntranceEx(EntranceName,enterX,enterY,enterZ,interiorID,interiorX,interiorY,interiorZ);
EntranceName - the 3DTextLabel text. It's shows on the entrance
enterX,
enterY,
enterZ - the coordinates of the entrance
interiorID - the ID of the interior
interiorX,
interiorY,
interiorZ - interior coordinates ( and exit coordinates too )
CreateEntranceEx function is used at Your GM
OnGameModeInit callback.
Код:
CheckEntrance(playerid);
This one checks, that you are at the entrance or not. If You are at - then you will be teleported to the interior, if not - nothing happen. ( Advice: put it under /enter command or somewhere else )
Код:
CheckExit(playerid);
This one works the same as CheckEntrance(playerid); , but this checks that are You at the exit ( interior coordinates ), and if yes - teleported to the entrances coordinates, if not - nothing happen.
Configuration
Open
EntrancesExitsSystem.inc ( i would suggest to open this with
pawno ).
Now, You will see a settings.
Код:
#define EntracesExits3DTextLabelColor 0x0080FFFF
#define TextLabelViewRange 20
#define EnterExitRange 3
#define MAX_ENTRANCES 10
EntracesExits3DTextLabelColor - the 3DTextLabel color.
TextLabelViewRange - the view distance of the 3DTextLabel
EnterExitRange - this range checking in
CheckEntrance(playerid); and
CheckExit(playerid);
MAX_ENTRANCES - the amount of the entrances ( exits ).
IT'S IMPORTANT TO CHANGE TO YOUR AMOUNT OF ENTRANCES / EXITS
Now, slide a lil' bit under, and You will see
Код:
// CreatePickup(1559,23,enterX,enterY,enterZ,0); /* Remove " // " from the front to create pickup at entrance */
// CreatePickup(1559,23,interiorX,interiorY,interiorZ,0); /* Remove " // " from the front to create pickup at exit */
at the
CreateEntrance and
CreateEntraceEx stock's.
The comments says everything. If You uncomment a line - it's will add a pickup.
1559 - the pickup ID.
Credits
Martin_M
Download
http://solidfiles.com/d/QDn4
http://pawn.pastebin.com/DM2YVfUZ
Have fun. :P
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • -
Blantas - 25.04.2010
Simple and nice.
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • -
Zh3r0 - 25.04.2010
Well this will be veri usefull.I like, i might use, thanks!
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • -
Martin_M - 25.04.2010
Thanks for comments.
PASTEBIN ADDED
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • -
RenisiL - 25.04.2010
Suitable for RP server, Simple but nice
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • - [03]Garsino - 25.04.2010
Nice and good work
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • -
[LNL]Remulis - 25.04.2010
Nice and usefull

thanks
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • -
UnHead - 25.04.2010
KANiO darbas vertas demesio ;]
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • -
RenisiL - 25.04.2010
Quote:
Originally Posted by UnHead
KANiO darbas vertas demesio ;]
|
Speak in english
Re: [FS] • [eSystem]: Entrances and Exits builder v0.1 • -
Martin_M - 25.04.2010
Quote:
Originally Posted by UnHead
KANiO darbas vertas demesio ;]
|
In Lithuanian language
Visų pirma, tai jeigu KANiS taip padarė, nereiљkia, kad dabar jau jo čia, viskas. Visų antra, tai nėra jo darbas. O visų trečia, sistemos visiљkai kitokios, neћinau, kaip KANiS darė, aљ dariau savaip. Tai blet, jeigu dabar kas nors vienaip padarys, nereiљkia, kad jau niekas to negali padaryti. Karoče, љneki į pievas. Biesina tokie. Nesupranti dviejų dalykų, ką reiљkia kopijavimas ir ne. Kaip tu kitaip sugalvosi įėjimus padaryti, ble? Nu niekaip. Taigi čia nekopijavimas, o kopijavimas būtų, jeigu būtų daugiau variantų kaip padaryti, bet padaryčiau taip, kaip pas kaћką yra. Jeigu aљ padarysiu namų sistemą, tai viskas, kas kiti susikurs namų sistemas - kopijuos, ane? Karoče, vaikas nx. Neneљu tokių, kurva biesina, bbd.
In English
Just a kid, who think's that if someone makes script like someone's - he think's that here is riping. Hate peoples like him.