SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 17/02/2011, 07:11 PM   #1
Gh0sT_
Gangsta
 
Join Date: Sep 2010
Location: Lithuania, Alytus
Posts: 704
Reputation: 0
Default [INC] Entrances system. [2.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
__________________
Includes
Player/Vehicle Control
Entrances system

Last edited by Gh0sT_; 19/02/2011 at 11:30 AM.
Gh0sT_ is offline   Reply With Quote
Old 17/02/2011, 07:28 PM   #2
DartakousLien
High-roller
 
DartakousLien's Avatar
 
Join Date: Jan 2010
Location: Portugal
Posts: 1,149
Reputation: 87
Default Re: [INC] Entrances system.

Congratulations!

have done well, from what I saw seems to be a great program, and better than usual, I would use this system in my server if it did not already created an equal xD
__________________
Github : Procurando interessados em participar em projetos comigo.
Visite também o meu portfólio
DartakousLien is offline   Reply With Quote
Old 17/02/2011, 07:41 PM   #3
Hal
High-roller
 
Hal's Avatar
 
Join Date: May 2010
Location: Toronto, Canada
Posts: 1,166
Reputation: 43
Default Re: [INC] Entrances system.

Looks good. This will be used for many instances :P
__________________

Wanna start a project thats NOT sa-mp with me? I have a bunch of server space, PM me.
Hal is offline   Reply With Quote
Old 17/02/2011, 07:45 PM   #4
Gh0sT_
Gangsta
 
Join Date: Sep 2010
Location: Lithuania, Alytus
Posts: 704
Reputation: 0
Default Re: [INC] Entrances system.

Thanks. :]
__________________
Includes
Player/Vehicle Control
Entrances system
Gh0sT_ is offline   Reply With Quote
Old 18/02/2011, 12:39 PM   #5
Gh0sT_
Gangsta
 
Join Date: Sep 2010
Location: Lithuania, Alytus
Posts: 704
Reputation: 0
Default Re: [INC] Entrances system.

v2.0 released
__________________
Includes
Player/Vehicle Control
Entrances system
Gh0sT_ is offline   Reply With Quote
Old 18/02/2011, 01:02 PM   #6
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Posts: 1,216
Reputation: 141
Default Re: [INC] Entrances system.

File is not closed, when you write to it.
wups is offline   Reply With Quote
Old 18/02/2011, 01:03 PM   #7
Gh0sT_
Gangsta
 
Join Date: Sep 2010
Location: Lithuania, Alytus
Posts: 704
Reputation: 0
Default Re: [INC] Entrances system.

Oh thanks.
__________________
Includes
Player/Vehicle Control
Entrances system
Gh0sT_ is offline   Reply With Quote
Old 18/02/2011, 01:04 PM   #8
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Posts: 1,216
Reputation: 141
Default Re: [INC] Entrances system.

And i don't think loading will work. Because the itterator is empty when you load the filterscript, so foreach won't loop.
Better, loop for MAX_ENTRANCES, and check if file exists!
wups is offline   Reply With Quote
Old 19/02/2011, 11:30 AM   #9
Gh0sT_
Gangsta
 
Join Date: Sep 2010
Location: Lithuania, Alytus
Posts: 704
Reputation: 0
Default Re: [INC] Entrances system.

Thanks you wups.

2.1 released
__________________
Includes
Player/Vehicle Control
Entrances system
Gh0sT_ is offline   Reply With Quote
Old 19/02/2011, 07:14 PM   #10
wups
High-roller
 
wups's Avatar
 
Join Date: Apr 2010
Posts: 1,216
Reputation: 141
Default Re: [INC] Entrances system.

Quote:
Originally Posted by Gh0sT_ View Post
Thanks you wups.

2.1 released
Um.. You still forgot
eCount ++;
before
Itter_Add(fEntrances, eCount);
when loading entrances.
wups is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yellow Entrances iTzZh Help Archive 3 05/08/2010 01:18 AM
How to make entrances Egypt1123 Help Archive 5 30/11/2009 05:48 AM
Entrances and Exits. cepiokas Help Archive 3 09/10/2009 02:15 PM


All times are GMT. The time now is 07:43 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.