[Include] [INC] Entrances system.
#1

Yes, yes.. Another entrances creating system.. But, this have some functions, like...

Lock/unlock;
Uses y_ini, so you can edit any entrance info in .ini file.
Uses foreach, instead of normal loops,
3D Texts



FUNCTIONS


Quote:
LockEntrance( entranceid ) - Will lock/unlock. *entranceid*. If entrance is locked, it will be unlocked, if its unlocked, then it will be locked.

DeleteEntrance( entranceid )

CreateEntrance( name[ ], enterX, enterY, enterZ, exitX, exitY, exitZ, interiorid, virtualid, locked )


PARAMS

Name - text of 3d text label
enterX, enterY, enterZ - where player will be spawned when he exit any building, and where player need to enter building.
exitX, exitY, exitZ - where player will be spawned when he enter any building, and where player need to exit building
interiorid, virtualid - virtual world, interior ID's
locked: 1 - building will be closed, 0 - not.

LINES


Quote:

236.

BUGS


Quote:

None at this moment. If you found ANY BUG, report it, thanks!

CREDITS


Quote:

foreach, y_ini - ******
a_samp - samp devs

DOWNLOAD


[quote]http://pawn.pastebin.com/cTfykseS - 1.0

http://pawn.pastebin.com/Ebvp8bBT - 2.1

UPDATES


Quote:

2.0:

Added hours mode... If GMT in your country is < minh or > maxh - player will CANT enter building.. (You will set minh, maxh in CreateEntrance). Also, you can disable it in top of script.
Fixed small mistake with locked buildings

2.1:

Fixed mistake with loading entrances(thanks to Wups).
Added function: DeleteEntrance
Reply


Messages In This Thread
[INC] Entrances system. [2.1] - by Gh0sT_ - 17.02.2011, 19:11
Re: [INC] Entrances system. - by DartakousLien - 17.02.2011, 19:28
Re: [INC] Entrances system. - by Hal - 17.02.2011, 19:41
Re: [INC] Entrances system. - by Gh0sT_ - 17.02.2011, 19:45
Re: [INC] Entrances system. - by Gh0sT_ - 18.02.2011, 12:39
Re: [INC] Entrances system. - by wups - 18.02.2011, 13:02
Re: [INC] Entrances system. - by Gh0sT_ - 18.02.2011, 13:03
Re: [INC] Entrances system. - by wups - 18.02.2011, 13:04
Re: [INC] Entrances system. - by Gh0sT_ - 19.02.2011, 11:30
Re: [INC] Entrances system. - by wups - 19.02.2011, 19:14
Re: [INC] Entrances system. - by Raimis_R - 24.02.2011, 18:20

Forum Jump:


Users browsing this thread: 1 Guest(s)