07.05.2012, 07:42
Dynamic Entrances by sekol
Hello. I was bored today's morning and thought of making something easy to refresh my scripting skills a bit.
I've come up with Dynamic Entrances system that uses:
DJson by DracoBlue
foreach by ******
ZCMD by Zeex
sscanf2 by ******
Streamer Plugin by Incognito
This script uses only one file named "Doors.ini" to hold every entrance in your script.
Commands:
Configuration:
Configuration is easy as pie! We have only two defines to edit, nothing more.
Installation:
Just install all includes and plugins listed above, compile my script, change your server.cfg to use this FS and all needed plugins.
Download:
DynamicEntrances.pwn
I've tested this with bare.pwn script. I'm not sure how will it work with GF's, so...
Hello. I was bored today's morning and thought of making something easy to refresh my scripting skills a bit.
I've come up with Dynamic Entrances system that uses:
DJson by DracoBlue
foreach by ******
ZCMD by Zeex
sscanf2 by ******
Streamer Plugin by Incognito
This script uses only one file named "Doors.ini" to hold every entrance in your script.
Commands:
Code:
/aentrance create [name] -> Creates an entrance at your current virtual world, interior and position naming it as you want. This command also gives universal ID to each door so they can be later edited. /aentrance interior [id] -> Sets defined entrance's interior to your current virtual world, interior and position using defined ID of an entrance. /aentrance name [id] [new name] -> Changes name of selected entrance to a new one leaving it's ID same as before. /aentrance delete [id] -> Deletes entrance with defined ID from game and 'Doors.ini' file.
Configuration is easy as pie! We have only two defines to edit, nothing more.
Code:
#define DOORS_FILE "Doors.ini" // This file will hold all data about entrances #define MAX_DOORS 100 // Maximum number of doors. Change to whatever you want :D
Just install all includes and plugins listed above, compile my script, change your server.cfg to use this FS and all needed plugins.
Download:
DynamicEntrances.pwn