SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 25/08/2012, 07:21 PM   #1
Mellnik
Gangsta
 
Mellnik's Avatar
 
Join Date: Dec 2011
Location: Paradise Falls, CAℕADA
Posts: 772
Reputation: 373
Post [FS] MellAdmin Advanced Account System [ MYSQL R7 | DINI | ZCMD | SSCANF | MD5 | VIP | 60+ commands] 0.3e support

THIS PROJECT IS OUTDATED AND NO LONGER MAINTAINED. DO NOT USE IT AS IT CONTAINS SECURITY VULNERABILITIES AND BUGS.

MellAdmin
Admin/Accountscript

v1.2 R3


This script is outdated and I do not give support anymore. I might create MellAdmin 2.0 with MySQL R38 in future but no promisses.

Author: Mellnik
Current Version: 1.2 R3
Scriptlines: over 4000
Release Date: 25/08/2012



Information/Features:
  • Login/Register dialogs
  • Autologin (can be disabled at top of script)
  • MD5 Password encryption (include by ******)
  • Threaded mysql querys
  • Custom Admin levels
  • Needed admin level at least for a command can be set at top of the script
  • You can easily make your own commands with adminlevel/viplevel checking
  • VIP System with custom levels (needed VIP level can be easily set)
  • VIP Chat write ! in front of you message and it will be send to all vips
  • More than 60 commands. Common ones und uncommon
  • The highest level admin is imune to all commands
  • Every command with parameters is scripted with SSCANF
  • Every command with parameters accept playerids or nickname/part of nick
  • Custon ban system with dialogs
  • Script support for the latest samp/plugin version
  • Anti Caps lock (admins can disable it ingame)
  • Report system
  • AKA System players with the same IP will be shown by typing /aka [id]
  • Many script settings, everything is toggleable at the top of the script with true|false
  • High Level admins can enable/disable server settings
  • Aniti Advertising (anti IP) (can be disabled at top of script)
  • Random messages (can be disabled at top of script)
  • Jail system
  • Vehicle Spawn system with dialogs (for admins and/or players can be set at top of the script)
  • Max bad rcon attemps
  • Position, skin saving! (can be disabled at top of script if they should spawn by their last pos)
  • Many commands to check the legit of players
  • Players can only use chat/commands if the are logged in
  • Private Message System (can be disabled at top of script)
  • Anti High Ping system implemented (http://forum.sa-mp.com/showthread.php?p=2067896)
  • Spectae system (can be disabled at top of script)
  • All commands are written in ZCMD (one of the fastest command processor)
  • And much more

Savings:

Code:
Status (0 = offline, 1 = online, 2 = banned)
Last used IP
Password hash
Positon (XPos, YPos, ZPos)
Admin Level
VIP Level
Wanted Level
Kills
Deaths
Money
Score
Health
Armour
Hours
Minutes
Seconds
Last used skin
Times kicked
Times reported
Times Spawned
Register Date
BanReason (if banned)
Banned by (if banned)
Ban date  (if banned)

60+ available commands:

Code:
COMMAND:   define which will set the needed admin level:

/vips                Not an admin command
/pay                 Not an admin command
/admins              Not an admin command
/time                Not an admin command
/pm                  Not an admin command
/stats               Not an admin command
/report              Not an admin command
/changepass          Not an admin command
/togping             LEVEL_togping    
/reports             LEVEL_reports           
/spec                LEVEL_spec
/onduty              LEVEL_onduty (also affect cmd offduty)
/enable              LEVEL_enable
/disable             LEVEL_disable
/adminhelp           LEVEL_adminhelp
/mytime              LEVEL_mytime
/eject               LEVEL_eject
/burn                LEVEL_burn
/crash               LEVEL_crash
/ip                  LEVEL_ip
/asay                LEVEL_asay
/announce            LEVEL_announce
/goto                LEVEL_goto
/get                 LEVEL_get
/kick                LEVEL_kick
/mute                LEVEL_mute
/unmute              LEVEL_unmute
/ban                 LEVEL_ban
/warn                LEVEL_warn
/slap                LEVEL_slap
/setadminlevel       LEVEL_setadminlevel
/setviplevel         LEVEL_setviplevel
/richlist            LEVEL_richlist
/unfreeze            LEVEL_unfreeze
/freeze              LEVEL_freeze
/clearchat           LEVEL_clearchat
/move                LEVEL_move
/healall             LEVEL_healall
/armourall           LEVEL_armourall
/setallweather       LEVEL_setallweather
/setalltime          LEVEL_setalltime
/cashfall            LEVEL_cashfall
/scorefall           LEVEL_scorefall
/jail                LEVEL_jail
/unjail              LEVEL_unjail
/wanteds             LEVEL_wanteds
/jailed              LEVEL_jailed
/frozen              LEVEL_frozen
/akill               LEVEL_akill
/showguns            LEVEL_showguns
/morning             LEVEL_morning
/miniguns            LEVEL_miniguns
/muted               LEVEL_muted
/killall             LEVEL_killall
/kickall             LEVEL_kickall
/setallwanted        LEVEL_setallwanted
/disarmall           LEVEL_disarmall
/ejectall            LEVEL_ejectall
/giveallweapon       LEVEL_giveallweapon
/spawnveh            LEVEL_spawnveh
/setmoney            LEVEL_setallmoney
/setscore            LEVEL_setscore
/setwanted           LEVEL_setwanted
/sethealth           LEVEL_sethealth
/setarmour           LEVEL_setarmour
/aka                 LEVEL_aka

Script Settings:

Code:
setting:                   default:            info:
 SERVER_NAME            "my awesome server name"     your server name
 MAX_ADMIN_LEVEL   	(10)               Max. admin level
 MAX_VIP_LEVEL          (3)                Max. VIP level
 USE_AUTO_LOGIN         (false)            true = enable false = disable
 MAX_WARNINGS        	(3)                Max. Warnings before player gets kicked
 MAX_REPORTS            (10)               max. reports
 MAX_BAD_RCON_ATTEMPS   (2)                Max. bad rcon attemps
 ENABLE_SPECATE  	(true)             Enabling the specsystem
 USE_PM_SYSTEM       	(true)             Enabling the PM SYSTEM
 MAX_FAIL_LOGINS        (3)                by exceed player gets kicked
 MIN_PASS_LEN           (3)                min. password lengh
 MAX_PASS_LEN           (32)               max. password lengh
 USE_VIP_SYSTEM         (true)             true = enable false = disable
 USE_CHAT_BUBBELS       (true)             true = enable false = disable
 USE_ID_MESSAGES        (true)             eg.: "Mellnik(ID 42): Hello there!"
 ENABLE_ADMIN_CHAT      (true)             true = enable false = disable
 USE_RANDOM_MSGS        (true)             true = enable false = disable
 RAND_MSG_INTERVAL      (60)               random messages interval in seconds
 USE_ANTI_ADS           (true)             anti advertising true|false (anti ip in chat)
 MAX_PING    	        (350)              max. allowed ping | only works if you enable
 PINGCHECK_TIME      	(2)  	           ping check interval in seconds
 MAX_EXCEEDS         	(3)       	   how many times it is allowed to exceed the ping limit
 OPC_DELAY           	(4)       	   if you set USE_OPC_DELAY to true, you change the delay until the checktimer for the player will be executed (no need to change this)
 USE_OPC_DELAY       	(true)             when a player connect he always has a high ping true= player will be checked after he connected (5 seconds) false= player will be checked immediately after he connected (not recommend)
 IS_ADMIN_IMMUNE     	(true)    	   is an admin immune against the ping kicker (true|false)
 SEND_MSG_BYKICK     	(true)             send a message to all when a player gets kicked cause of high ping (true|false)
 SEND_ADM_BYEXCEED   	(true)             send message to admin when player exceeds the ping limit (true|false)
 SEND_PMSG_BYEXCEED  	(true)             send a message to player when he exceeds the ping limit (true|false)
 PRINT_BYKICK        	(true)    	   print message in server logs when player gets kicked (true|false)
 LOAD_PLAYER_POS     	(true)             Should the player pos be be loaded by first spawn?
 LOAD_PLAYER_HA         (true)             load player health and armour by login? (true|false|
 NO_PERM                 "Insufficient permissions"  this is the message which will be send to the player if he hasnt the needed adminlevel

Installation/How to use:

Installation:
  1. Download the full package below.
  2. Add the includes to your real include folder.
  3. Recompile the script with your settings and read the comments to avoid problems!
  4. Upload the script into the filterscripts folder on your server
  5. Add "MellAdmin" to your filterscripts line in the server.cfg and "sscanf" to plugins line (if you use mysql you also have to add "mysql")
    Code:
    filterscripts MellAdmin
    WINDOWS: plugins sscanf mysql
    LINUX: plugins sscanf.so mysql.so
  6. If you use DINI:
    1. Create folder named "Account" in your scriptfiles directory
  7. If you use MySQL
    1. Import the Account.sql file to your database e.g. phpMyAdmin or Navicat
    2. Make sure that you have set the mysql login settings correct in your script
  8. Your server should now be ready to start. If you have problems post your server_log file and describe your problem

How to make yourself admin/vip:
  1. Log into RCON
  2. type /setadminlevel <your id> <the max admin level>
  3. for VIP type /setviplevel <your id> <the max VIP level>
  4. You are now admin and VIP

[Scripting] How to check if someone has admin/vip level:

pawn Code:
COMMAND:mycommand(playerid,params[]) //zcmd command
{
    #pragma unused params  //if you dont need the params in this command
    if(PlayerInfo[playerid][AdminLevel] >= HERE COMMES THE NEEDED ADMIN LEVEL)
    {  
         //your code comes here
    }
    else
    {
        SendClientMessage(playerid, RED, "Insufficient permissions");
    }
    return 1;
}

COMMAND:myvipcommand(playerid,params[]) //zcmd command
{
    #pragma unused params  //if you dont need the params in this command
    if(PlayerInfo[playerid][AdminLevel] >= HERE COMMES THE NEEDED VIP LEVEL)
    {  
         //your code comes here only useable for the vip level or higher
    }
    else
    {
        SendClientMessage(playerid, RED, "Insufficient VIP permissions");
    }
    return 1;
}

Screenshots:





Please read:
  • By downloading you accept that you will not upload this script yourself
  • If you have suggestions or problems post them
  • MySQL R6 or lower will not work !
  • ZCMD by ZeeX, Dini by DracoBlue, MD5 include by ******
  • Please report all bugs you found, use this:
    Code:
    Describe the bug:
    When does it appear?
    Does it always appear or just randomly?
    What else happens when you use this bug?

Troubleshooting:
  1. libmysql.dll
    Getting this message by starting on windows?
    Code:
    This application has failed to start because libmysql.dll can not be found.
    Solution: Download http://files.g-stylezzz.com/libmySQL.dll and put it in your samp root directory

Changelog:
  • 1.2 R3(09/12/2012)
    *Fixed the message by /jail (reported by Hansolue)
  • 1.2 R2(20/11/2012)
    *AntiSpam rewritten
    *Fixed some small warnings and errors when using defferent settings (reported by chip9)
  • 1.2(13/11/2012)
    *Readded the md5 include
    *The script is now licensed under Apache 2.0
  • 1.1 R2(24/10/2012)
    *Flip command added
    *3 small bugs fixed
  • 1.1 (28/8/2012)
    * [Added] AKA system (Suggested by Hoss) aka.txt will be created in the scriptfiles, if you use dini. Otherwise if you use MySQL, registered players with the same IP will be shown in a dialog. (/aka [id])
    * [Added] /sethealth /setarmour command
    * [Added] Health & Armour saving (loading can be disabled by the script settings
    * [Fixed] disable command
  • 1.0 (25/8/2012)
    * Release
[INDENT]

Download:
[INDENT]
Plugins you need:
>> sscanf 2.6 by ****** download: http://forum.sa-mp.com/showthread.php?t=120356 (I didn't test it with 2.8.1 yet)
>> mysql R7 by BlueG download: http://forum.sa-mp.com/showthread.php?t=56564

Latest Version: http://files.mellnik.com/old/

Last edited by Mellnik; 09/06/2014 at 02:46 PM.
Mellnik is offline   Reply With Quote
Old 25/08/2012, 08:05 PM   #2
Hoss
Big Clucker
 
Join Date: Sep 2010
Posts: 186
Reputation: 85
Default Re: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

Good job
+
Hoss is offline   Reply With Quote
Old 25/08/2012, 08:17 PM   #3
Justin Reif
Big Clucker
 
Join Date: May 2012
Posts: 56
Reputation: 15
Default Re: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

Nice work!
Justin Reif is offline   Reply With Quote
Old 25/08/2012, 08:18 PM   #4
Mellnik
Gangsta
 
Mellnik's Avatar
 
Join Date: Dec 2011
Location: Paradise Falls, CAℕADA
Posts: 772
Reputation: 373
Default AW: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

Glad you like it. Also post some suggestions

Last edited by Mellnik; 23/11/2013 at 08:13 AM.
Mellnik is offline   Reply With Quote
Old 25/08/2012, 08:22 PM   #5
Lordzy
High-roller
 
Lordzy's Avatar
 
Join Date: Mar 2012
Location: NetherRealm
Posts: 2,707
Reputation: 1176
Default Re: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

Nice Admin script.
Keep going...
__________________
Currently inactive - I don't play at any SA-MP servers nor work on anything in PAWN for now. The projects that I've done so far in PAWN, which requires updates will be taking some time.
Lordzy is offline   Reply With Quote
Old 25/08/2012, 08:22 PM   #6
Kaperstone
Banned
 
Join Date: May 2011
Location: Russia
Posts: 3,025
Reputation: 824
Default Re: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

Why MySQL?
Kaperstone is offline   Reply With Quote
Old 25/08/2012, 08:32 PM   #7
IstuntmanI
High-roller
 
IstuntmanI's Avatar
 
Join Date: Mar 2009
Location: Romania
Posts: 1,832
Reputation: 375
Default Re: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

Quote:
Originally Posted by xkirill View Post
Why MySQL?
Why INI ?

MySQL is much faster and offers more advantages.

This administration system looks great.
__________________


IstuntmanI is offline   Reply With Quote
Old 25/08/2012, 08:32 PM   #8
Mellnik
Gangsta
 
Mellnik's Avatar
 
Join Date: Dec 2011
Location: Paradise Falls, CAℕADA
Posts: 772
Reputation: 373
Default AW: Re: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

Quote:
Originally Posted by xkirill View Post
Why MySQL?
xD you even know what mysql is?^^
Mellnik is offline   Reply With Quote
Old 25/08/2012, 08:36 PM   #9
DarkB0y
Huge Clucker
 
Join Date: Dec 2011
Posts: 366
Reputation: 38
Default Re: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

good job mellnik keep it up
__________________
DarkB0y is offline   Reply With Quote
Old 25/08/2012, 09:07 PM   #10
Kaperstone
Banned
 
Join Date: May 2011
Location: Russia
Posts: 3,025
Reputation: 824
Default Re: AW: Re: [FS] MellAdmin - Advanced Account System [ ZCMD | SSCANF | MYSQL R7 | DINI | MD5 | VIP | 60+ commands]

Quote:
Originally Posted by Mellnik View Post
xD you even know what mysql is?^^
Yes,but i dunno what does people use it.
Kaperstone 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
[FilterScript] Login/Register using ZCMD SSCANF & Y_INI.( Admin commands + VIP System + VIP Commands! ) Zh3r0 Filterscripts 116 09/01/2015 10:57 AM
[FilterScript] fVIP - Advanced, easy-to-use, configurable VIP system [ZCMD + sscanf + Dini] fiki574 Filterscripts 65 01/12/2014 09:41 PM


All times are GMT. The time now is 08:57 AM.


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