[FilterScript] AdminKod Admin System[MySQL|ZCMD|SSCANF]
#1

Current version: 0.2

ABOUT:
I created AdminKod with help of [HiC]TheKiller's MySQL tutorial and some other stuff is imported from my old(but never released) gamemode. I was scripting AdminKod while I couldn't sleep so I believe there will be misspelled words and maybe few scripting bugs, but report them in this thread or PM me.


Used plugins: MySQL(R5), sscanf
Used includes: MySQL(R5), sscanf, zcmd


COMMANDS:
Код:
Everyone
/adminkod - Shows information about AdminKod
/stats - Shows player statistics
/bank - Allows the player to put money in bank
/withdraw - Allows the player to withdraw money from bank

Level 1
/say - Allows the admin to send message to everyone on server with admin tag
/(un)freeze - Allows the admin to freeze/unfreeze players (Toggle player controls)
/goto - Allows the admin to teleport to player
/(un)mute - Allows the admin to mute/unmute players
/jetpack - Allows the admin to give himself jetpack
/godmode - Allows the admin to enable godmode for himself
/megajump - Allows the admin to enable megajump for himself

Level 2
/kick - Allows the admin to kick player from server
/announce - Allows the admin to announce text to everyone
/bring - Allows the admin to bring player to his position
/drop - Allows the admin to drop player from 15 feet above ground
/(un)jail - Allows the admin to jail/unjail player
/spawn -Allows the admin to spawn player
/ip - Shows player IP to admin

Level 3
/slay - Allows the admin to kill player
/explode - Allows the admin to explode player
/(un)ban - Allows the admin to ban/unban player
/jetpack <ID> - Allows the admin to give jetpack to another player
/godmode <ID> - Allows the admin to enable godmode for another player
/megajump <ID> - Allows the admin to enable megajump for another player
/setdeaths - Allows the admin to set player new deaths amount
/setkills - Allows the admin to set player new kills amount

Level 4
/setscore - Allows the admin to set player new score amount
/setmoney - Allows the admin to set player new money amount
/setplayerbank - Allows the admin to set player new banked money amount
/healall - Allows the admin to heal everyone
/armourall - Allows the admin to give armour to everyone
/disarm - Allows the admin to disarm player weapons

Level 5 and RCON
/setlevel - Allows the admin to set player level
/gmx - Allows the admin to restart server
Some features:
* Auto-Login
* Basic bank system
* Stats saving (Money, Kills, Deaths, Score, Bank, Admin Level, IP)
* Custom ban system


I will be adding more commands and features in 0.2

Installation:
Windows
1. Download and extract all files in your server folder

2. Add these lines in server.cfg:
filterscripts adminkod
plugins mysql sscanf

3. Create MySQL database 'sa-mp'

4. Edit MySQL connection details in adminkod.pwn

5. Start your server(It will create tables automatically)

Linux
1. Download and extract all files in your server folder

2. Download MySQL.so and sscanf.so from its threads and put them in plugins folder.

3. Add these lines in server.cfg:
filterscripts adminkod
plugins mysql.so sscanf.so

4. Create MySQL database 'sa-mp'

5. Edit MySQL connection details in adminkod.pwn

6. Start your server(It will create tables automatically)


If you installed it correctly then you should see something like this in console:



Downloads:
v0.2
(Plugins, includes, source, amx, dump) http://www.solidfiles.com/d/b3fe1c7dd4/
(Plugins, includes, source, amx, dump) http://rxservers.com/d/AdminKod.zip
Reply
#2

Good job, simple yet useful.

ps: mind adding another mirror? soldfiles wont work for me.
thank you.
Reply
#3

Quote:
Originally Posted by RanSEE
Посмотреть сообщение
Good job, simple yet useful.

ps: mind adding another mirror? soldfiles wont work for me.
Thanks, I added second link for download.
Reply
#4

Try adding more admin commands. Anyway, Nice start. Keep it up.
Reply
#5

Please post some suggestions what I should add in next version of AdminKod.
Reply
#6

No register/login? Testing and I noticed when I used /stats my Account name and ID came up with one of my NPC's, also, I'm logged into /rcon and it says you need to be level 5 admin, should rcon override level 5? Or am I doing something wrong here?
Reply
#7

Quote:
Originally Posted by V1ceC1ty
Посмотреть сообщение
No register/login?
There are register/login dialogs.

Quote:
Originally Posted by V1ceC1ty
Посмотреть сообщение
Testing and I noticed when I used /stats my Account name and ID came up with one of my NPC's
I will check this bug and fix it if exists.

Quote:
Originally Posted by V1ceC1ty
Посмотреть сообщение
I'm logged into /rcon and it says you need to be level 5 admin, should rcon override level 5? Or am I doing something wrong here?
In next version I will make RCON admin can use all commands.

Thank you
Reply
#8

Quote:
Originally Posted by RXservers
Посмотреть сообщение
There are register/login dialogs.
They don't show up for me, I have no conflicting dialog ID's
Reply
#9

Quote:
Originally Posted by V1ceC1ty
Посмотреть сообщение
They don't show up for me, I have no conflicting dialog ID's
I think you didn't install AdminKod correctly. Does AdminKod message show in chat when you connect and does your server successfully connect to MySQL(Check in console).
Reply
#10

Got the same, no MySQL log or anything. Don't get http://i.imgur.com/cy1LP.png all I get is

"SA-MP Dedicated Server
----------------------
v0.3e-R2, ©2005-2012 SA-MP Team

[20:16:23]
[20:16:23] Server Plugins
[20:16:23] --------------
[20:16:23] Loading plugin: mysql
[20:16:23]

> MySQL plugin R7 successfully loaded.

[20:16:23] Loaded.
[20:16:23] Loading plugin: sscanf
[20:16:23]

[20:16:23] ===============================

[20:16:23] sscanf plugin loaded.

[20:16:23] © 2009 Alex "******" Cole

[20:16:23] ===============================

[20:16:23] Loaded.
[20:16:23] Loaded 2 plugins.

[20:16:23]
[20:16:23] Ban list
[20:16:23] --------
[20:16:23] Loaded: samp.ban
[20:16:23]
[20:16:23]
[20:16:23] Filterscripts
[20:16:23] ---------------
[20:16:23] Loading filterscript 'adminkod.amx'...
[20:16:23] Loaded 1 filterscripts."
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)