25.04.2010, 06:49
_________________________________________________
_________________________________________________

• [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
Functions
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.
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.
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 )
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.
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
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
_________________________________________________

• [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>
Код:
CreateEntrance(enterX,enterY,enterZ,interiorID,interiorX,interiorY,interiorZ);
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);
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);
Код:
CheckExit(playerid);
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
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 */
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