[FilterScript] sAdmin Simple admin system (Alternate between Y_INI and MySQL)
#1

sAdmin (Simple Admin) 1.5
What is s-Admin?

s-Admin is a simple admin script with just the nessesary commands, why not a shitload of commands?
Well i like admin scripts clean,usefull and easy to use, and not full of useless commands which will just be abused.

It supports MYSQL (Using my yoursql library), but also Y_INI so the users can decide for themself if they want to use textfiles or an online database. s-Admin also provides a dialogged GUI, the administrator can just
doubleclick on a player in the scorelist and it will show up a dialog with several options.

s-Admin also saves the player stats (like score,money) and includes an anti-jail/mute evade.

Commands and levels
pawn Code:
/*
Player          (Level 0):
   Command:        Parameters:                        Explaination:
     /admins         none                             Lists all online administrator
     /changepassword [oldpassword] [newpassword]      Allows the player to change his password
     /stats          none                             Rettreive's playerstats
     /whois          playerid                         Rettreive's information about a player
     /whowas         playername                       Rettreive's information about a player
     /report         [player] [reason]                Reports another player (this will be shown to online admins and in Rcon console)

Moderator     (Level 1):
   Command:        Parameters:                        Explaination:
     /countdown      none                             Starts a countdown
     /acmds          none                             Shows all admin commands
     /a              [text]                           Adminchat
     /whois          [player]                         Rettreive information about given player
     /announce       [text]                           Announce a message
     /spectate       [player]                         Spectate player
     /stop           none                             Stops spectating player
     /disarm         [player]                         Resets player weapons of player
     /mute           [player] [reason (optional)]     Mutes player
     /unmute         [player]                         Unmutes player
     /freeze         [player] [reason (optional)]     Freezes player
     /unfreeze       [player]                         Unfreezes player
     /jail           [player] [reason (optional)]     Jails player
     /unjail         [player]                         Unjails player
     /kick           [player] [reason (optional)]     Kicks player

Administrator   (Level 2):
     Command:        Parameters:                      Explaination:
      /veh             [vehiclename]                  Spawns a vehicle for the admin
      /get             [player]                       Teleports given player to the admin
      /goto            [player]                       Teleports admin to the given player
      /giveweapon      [player][weaponid][ammo]       Gives weapon to given player
      /setmoney        [player][ammount]              Changes money of player
      /setscore        [player][ammount]              Changes score of player
      /explode         [player]                       Explodes player
      /ban             [player] [reason (optional)]   Bans the player
      /banip           [ip]                           Bans the player
      /annoy           [player]                       Releases a cow on the player! (Known from Hiddos's annoying cow script)
      /catchcow                                       Removes released cow

Owner            (Level 3):
     Command:        Parameters:                      Explaination:
     /setlevel         [player][level]                Adjust the rights of the player (Level 0/3)
     /unbanip          [ip]                           Unbans the player*/
Changelog
Code:
1.0
	- First release
1b:
	- /stats colors are better
	- /admins colors are better
	- adminchat has now a space
1c:
	- You cannot click on yourself in the scorelist anymore
	- /count command added
	- /veh has been optimised
	- /giveweapon is now using weapon names instead of ID's
	- s-Admin is now using gLibrary 1.1
1.1:
	- Optimised code (using gLibrary 1.2) and better colors
	- s-Admin now also saves IP
	- passwords will now be hashed with WhirlPool
	- /whois is now public
	- /whowas added
	*Please note that this is NOT backwards compatable anymore with the older database/yoursql version! so the users will need to register again.
1.2:
	- Returns fixed
	- Colors changed again (looks much better now)
	- Some VERY important security issues fixed (logging in)
	- Return problem fixed (compability with other scripts using dialogs)
VERY IMPORTANT! There was an big security issue which let other players login at administrator accounts. This has been fixed now, i recommend updating to 1.2 immediately
1.3-1.4:
	- After some time or bugtesting i discovered a few more bugs disabling OnPlayerDisconnect on gamemodes/filterscripts. I made a small list of bugs and fixed those. Everything should be now bugfree.

1.5:
	- Updated version of gLibrary used solving the chat issue.
Credits

Hiddos for his annoying cow script (Stalkercows)
Zeex for ZCMD
Y_Less for sscanf2
Y_Less for Y_INI
G-sTyLeZzZ for his MYSQL Plugin
Myself for yoursql
Myself for gLibrary

Download:
Pastebin source
Reply


Messages In This Thread
sAdmin Simple admin system (Alternate between Y_INI and MySQL) -Updated (V1.1) - by gamer931215 - 24.03.2011, 16:04
Re: gAdmin Simple admin system (Alternate between Y_INI and MySQL) - by wheelman_WM - 24.03.2011, 16:06
Re: gAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Hiddos - 24.03.2011, 16:06
Re: gAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Scrip - 24.03.2011, 16:30
Re: gAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Scrip - 24.03.2011, 16:34
Re: gAdmin Simple admin system (Alternate between Y_INI and MySQL) - by gamer931215 - 24.03.2011, 16:40
Re: gAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Hiddos - 24.03.2011, 16:57
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by iTorran - 24.03.2011, 19:55
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by BASITJALIL - 25.03.2011, 02:51
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by royal_king - 25.03.2011, 07:09
AW: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Johann95 - 25.03.2011, 11:49
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by gamer931215 - 26.03.2011, 03:23
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Ironboy - 26.03.2011, 04:59
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by nateykurgan - 26.03.2011, 12:44
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by [BDGA]Matthijs - 26.03.2011, 12:50
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by gamer931215 - 26.03.2011, 12:57
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by [BDGA]Matthijs - 26.03.2011, 13:22
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by gamer931215 - 26.03.2011, 14:57
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Medal Of Honor team - 26.03.2011, 15:18
Re: gAdmin Simple admin system (Alternate between Y_INI and MySQL) - by ricardo178 - 26.03.2011, 15:19
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Jochemd - 26.03.2011, 15:25
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by (LifeStealeR) - 26.03.2011, 15:33
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) -Updated (V1.1) - by gamer931215 - 27.03.2011, 02:32
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Smokemachine - 27.03.2011, 02:42
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by jejemonerz123 - 27.03.2011, 05:48
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Smokemachine - 27.03.2011, 23:00
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Mr.Jvxmc - 27.03.2011, 23:31
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by gamer931215 - 28.03.2011, 04:28
AW: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by Johann95 - 30.03.2011, 03:29
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by davesnipe360 - 11.05.2011, 21:24
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by BizzyD - 12.05.2011, 05:16
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by gamer931215 - 12.05.2011, 05:31
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by lowrida018 - 12.05.2011, 05:59
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by flybox - 09.06.2011, 14:27
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by gamer931215 - 09.06.2011, 15:47
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by flybox - 12.06.2011, 12:32
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by sameer419 - 12.06.2011, 15:48
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by iMonk3y - 04.08.2011, 19:06
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by RockFire - 04.08.2011, 20:52
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by roadless - 04.08.2011, 21:28
Re: sAdmin Simple admin system (Alternate between Y_INI and MySQL) - by gamer931215 - 04.08.2011, 21:50

Forum Jump:


Users browsing this thread: 4 Guest(s)