29.01.2012, 10:03
(
Последний раз редактировалось TheBetaFox; 30.01.2012 в 15:03.
)
foxReg
Hi, guys! Today I bring you a (quite unfinished) C-MySQL based registration system, FoxReg!- Needed:
--- Includes:
----- YSI Server Includes (by ******)
----- C-MySQL (by Carlton)
----- a_fox (found in my signature, but it is packed in the zip)
----- y_md5 (will change to Whirlpool. Packed in the ZIP file.)
--- BlueG's MySQL Plugin
----- You can find it in the plugin development section.
--- ******' SSCANF2 Plugin
----- You can find it in the plugin development section.
----- not needed, but I am going to use it in the future. You can undef it.
--- MySQL Database
----- You will NEED a MySQL server to be set up.
pawn Код:
#define MYSQL_HOST "localhost" // Host the database is located on; usually 127.0.0.1 or localhost
#define MYSQL_USER "root" // Username the plugin uses to log onto the host
#define MYSQL_PASS "" // Password the plugin uses to log onto the host
#define MYSQL_DB "database" // The name of the MySQL database that should be accessed
- This is just a beta version, mostly copied from my server's also unfinished gamemode.
- Also, in the table where C-MySQL is set up (see its thread, linked above, for details) you need to set up the - following fields: Score, Money, Admin, VIP, Kills, Deaths, Muted, Frozen, MutedT, FrozenT, Banned, Logins. (all INT, default length).
- (That's also a list of everything that is saved.)
- The registering and logging are done via dialogs.
EDIT: It is now uploaded as an attachment!
EDIT2: UPDATED!
ADDED COMMANDS:
LVL 1: /warn /mute /unmute
LVL 2: /kick /ban /freeze /unfreeze
LVL 3: /setadmin /setvip
Redownload the attachment.