[FilterScript] L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited
#1

LethaL's Admin System 5.0
Last Update: September 8, 2016
Introduction

LAdmin is originally released by LethaL's, It's last release were issued @ July 29, 2008 - 8 years ago... LAdmin is originally made for SA-MP 0.2x and was the best admin system to be existed at the time. However as the time goes by, the admin system itself is getting old and it's features (and code method) are getting old too. 2 years later, LuxurioN re-issued a release of LAdmin under the new name LuxAdmin - He added some stuffs but never managed to convert the whole script to ycmd, sscanf, foreach & y_ini just like he promised on the LuxAdmin thread. Up to this day, No one has still managed to re-issue LAdmin, heavily edited to sscanf2, zcmd, sscanf and SQLite. I began working on the script @ August 28, 2016 (11 days ago before this release) I know that all of you did be expecting a lot of changes & improvements on the admin system itself, I will ensure you that this admin system will be heavily changed as it gets updated! Thank you for everyone who participated on the beta-testing, if there's any? Specially thanks to Harvey, a friend of mine who assisted me on the final beta testing day for LAdmin.

Comparison From The Original LAdmin

Code Comparison

vs


LAdmin Menu (/lmenu)

vs

Features
  • Compatible @ SAMP 0.3.7
  • SQLite Saving System
  • Whirlpool Password Hashing
  • Everything is scripted with zcmd and sscanf (Credits to Zeex and ******)
  • UserID system
  • 100+ administrative/player commands.
  • Report System
  • Updated Admin Include Support+ ladmin.inc
  • Immune System (Admins cannot use commands to higher admins)
  • Spectate System
  • Custom Lock Server
  • Anti-Swearing, Ping Kicker
  • and much more to discover by yourself.
Commands

Player Commands (/lcmds)
/register, /login, /report, /stats, /changepass, /getid

Admin Commands (/lacmds) - Originall /level1../level5

Level 1
/getinfo, /weaps, /vr, /repair, /ltune, /lhy, /lnos, /asay
/morning, /reports, /richlist, /miniguns, /saveplace, /gotoplace
/saveskin, /useskin, /dontuseskin, /setmytime, /ip, /lconfig
Admin Chat: # (Ex; #Hi I am Jake)

Level 2
/giveweapon, /setcolor, /burn, /spawn, /disarm, /lcar, /lbike, /jetpack
/lheli, /lboat, /lplane, /highlight, /announce(2), /screen, /flip
(/v-l-goto), /fu, /warn, /slap, /jailed, /frozen, (/un)mute, /muted
/lspec(off), /lspecvehicle, /clearchat, /lmenu, /ltele, /cm, /ltmenu, /write

Level 3
/sethealth, /setarmour, /setcash, /setscore, /setskin, /setwanted, /setname, /setweather
/settime, /setworld, /setinterior, /force, /eject, (/s)bankrupt, /ubound, /lweaps, /lammo
/countdown, /car, /carhealth, /carcolor, /setping, /setgravity, /destroycar
/teleplayer, /vget, /givecar, /gethere, /get, /kick, /explode, (/un)jail, (/un)freeze
/akill, /disablechat, /caps, /move(player), /healall, /armourall, /setallskin, /setallwanted
/setallweather, /setalltime, /setallworld, /setallscore, /setallcash, /giveallcash, /giveallweapon
/lweather, /ltime, /lweapons, /setpass

Level 4
/enable, /disable, (/r)ban, /spam, /god(car), /die, /uconfig
(/un)lockserver, /forbid(name/word), /spawnall, /disarmall
/muteall (/un)freezeall, /kickall, /slapall, /ejectall
/unmuteall, /getall, /killall,, /explodeall, /crash

Level 5
/setlevel, /reloadladmin, /gmx
Note
  • The folder "users" inside ladmin folder (@scriptfiles) are no longer in use, All of the user's data will be saved @ user.db (You need a SQLite Database Browser in order to open it)
  • The script might still have the bugs that are present from the old LAdmin (if there's any), Report back if you have found any. As far as I know I have fixed some of the minor errors/bugs on the script itself.
  • The Admin System is not fully tested but most of the common features & commands are tested
Installation
  1. Open LAdmin 5.0.rar
  2. Extract the 4 folders, filterscripts/pawno/plugins and scriptfiles to your server files.
  3. Open server.cfg from your server files.
  4. To load LAdmin, in the line filterscripts, add "ladmin" (Without quote) so it will be look like this for example.
    filterscripts ladmin iTDe

  5. Now after loading the filterscript, we're not done yet, Go to the line plugins (if there's no line plugins add one)
  6. Add "sscanf whirlpool" or "sscanf.so whirlpool.so" for Linux users. (Without quote)
so it will look like this

Windows Users: plugins sscanf whirlpool
Linux Users: plugins sscanf.so whirlpool.so

If the plugins and includes that are used in LAdmin is outdated, update them and recompile LAdmin and the other scripts!

How To Make Yourself Admin?
  1. Connect to your server with LAdmin loaded into your server.
  2. Login to your RCON (/rcon login [your rcon password])
  3. Type /setlevel [your id] 5
How To Check For Admin Level

PHP Code:
CMD:mycommand(playeridparams[])
{
    if(
PlayerInfo[playerid][Level] < 1)
        return 
SendClientMessage(playeridred"ERROR: You are not a high enough level admin to use this command."); // Change 1 to any value you want (level)
    
    //Place your script code here.
    
return 1;

How To Check For Admin Level On Your Script

PHP Code:
#include <ladmin> //below all of your includes
CMD:yourcmd(playeridparams[])
{
    if(
IsPlayerLAdmin(playerid) >= 1)
    {
        
//
    
}
    else
    {
        
//
    
}
    return 
1;

Opening .db Files

LAdmin uses .db files (SQLite default format for saving) compare to the original LAdmin which uses dudb (EW!), they can't be opened with Notepad or Wordpad. You need a special program to open it, for example the SQLite Browser. I used it on opening the .db files, It can be downloaded by clicking this link.

Now after you downloaded it, Follow the instructions on the picture:


After opening the SQLite Database Browser, Press CTRL + O and go to your scriptfiles where LAdmin/users.db is located at.


Click users.db and you'd see three columns in the application (Database Structure, Browse Data & Execute SQL) - Click the Browse Data and do not touch anything at ALL if you do not know what you are doing, You'd see the player's data (rows)


If you wanted to edit something like their stats (kills, admin level etc) double click the numbers and you'd see this.


If you have made any changes on the value, Click Apply Changes and save the database - Once you are done close the application.
Screenshots



Changelog

Version 5.0
  • Script has been updated to be compatible for 0.3.7
  • Saving System has been shifted from dudb to SQLite
  • Password Hashing has been shifted from udb_hash to Whirlpool.
    so that the scripters can find the command easily.
  • Converted to; zcmd, sscanf2 (previously; dcmd & strtok)
  • /crash has been improved.
  • Removed some commands;
    (/(un)lockcar, /kill, /time, /serverinfo, /lslowmo, /ltc2../ltc13, /lp, /adminarea, /settemplevel, /laston)
    (/object, /pickup, /clearallchat, /resetstats, /ping, /richlist)
  • /level1 .. /level5 has been made into one command; /lacmds
  • The way how /repair works has been updated;
  • There are some errors on messages such as Usages and missing suffixes like "ERROR:"
    which has been fixed on this version.
  • Removal of the old style Menu replacing them with much newer dialogs (0.3+ dialogs)
  • Removed the Remoted Controlled & Tram from the /cm menu
  • Removal of Anti-Bot Check (doesn't work with today's SAMP standards)
  • Re-arranged the script, Trying to optimize it to my best own way.
  • Kick Delays has been added.
  • Removal of the Read PM feature (the fact that OnPlayerPrivMsg is extinct for a very long time)
  • /admins are now listed in dialog
  • /reports are now also listed in dialog
  • Removal of SaveWeaps from the config.ini (it has no use at all after checking LAdmin4v2)
  • Register, Login, AdminSkin, Server Lock checks OnPlayerSpawn moved to OnPlayerRequestSpawn
  • Facing Angles on /saveplace are now being saved.
  • Scripters has now the option to choose if the register/login must be done on command or on dialog
    (refer to REGISTER_COMMAND)
  • Removed some of the unused codes from LAdmin's very previous version back 8 years ago.
  • Removal of USE_STATS.
  • As far as I am concerned, LAdmin doesn't save the scores, Now it does!
  • /setpass and /changepass are now invisible from the Read Commands (NO MORE READING).
  • /setpass now creates a log (@make sure to check passchange.txt)
  • /changepass has an old password parameter now just to make sure that the player logging into that account
    is the real owner (There are some cases that an admin's account might be access by their brothers etc.. via AutoLogin)
  • Removal of the fake commands.
  • Admin Skin Only feature can be now configured @ /lmenu.
  • Improved /ubound.
  • /stats is now on Dialog.
  • /givecar has now modelid/name parameter.
  • Re-touched the messages a little bit (seeing the color blue all over LAdmin's command is just soooo...)
  • Improvements on ladmin.inc.
  • Duel System removed.
  • /setname - Now renames the Player's account if they have any.
Downloads

Download links below, Press click to get directed to the file.

:: Version :::: Release Date :::: Link :::: Upload Site :::: SAMP Version :::: Progress :::: Status ::
5.1TBATBATBA0.3.70%Development
5.009/08/16ClickZippyShare0.3.7LATEST
Credits

LethaL, Jake Cipher, ******, DracoBlue, Zeex, Ranveer, Harvey, Ultraz, Ishmaaa

You may use this script on your server, You have to ask permission though if you are gonna redistribute this (Doing some modifications and editing it.)
Reply


Messages In This Thread
L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 07.09.2016, 23:27
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by Ultraz - 07.09.2016, 23:32
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by Zorono - 08.09.2016, 01:37
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by Ultraz - 08.09.2016, 02:03
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 08.09.2016, 05:58
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by SickAttack - 08.09.2016, 06:04
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 08.09.2016, 06:14
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by markparker12 - 08.09.2016, 07:14
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by Younes44 - 08.09.2016, 08:15
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by HeLiOn_PrImE - 08.09.2016, 09:57
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by Quinncell - 08.09.2016, 14:49
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by markparker12 - 08.09.2016, 16:26
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by Crystallize - 08.09.2016, 17:19
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 08.09.2016, 21:46
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 09.09.2016, 07:17
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by SickAttack - 09.09.2016, 07:23
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 10.09.2016, 06:02
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by markparker12 - 10.09.2016, 06:47
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by SickAttack - 10.09.2016, 06:49
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by Gotham - 10.09.2016, 09:47
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by Uberanwar - 11.09.2016, 01:01
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by BrianFaria - 16.09.2016, 02:06
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 16.09.2016, 10:30
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by HydraHumza - 18.09.2016, 17:21
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by MrViolence101 - 18.09.2016, 19:47
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 19.09.2016, 10:27
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by LennyBE - 20.09.2016, 19:17
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 21.09.2016, 09:13
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 20.08.2017, 15:07
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 24.08.2017, 13:44
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by donhu789 - 28.08.2017, 18:44
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 01.09.2017, 04:18
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by SonnyGamer - 01.09.2017, 07:29
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by JaKe Elite - 06.09.2017, 12:57
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by cuber - 06.09.2017, 12:58
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by SonnyGamer - 06.09.2017, 14:10
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by donhu789 - 09.09.2017, 07:00
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by metelicgamer - 15.09.2017, 11:08
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by metelicgamer - 15.09.2017, 11:13
Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - by metelicgamer - 15.09.2017, 11:20

Forum Jump:


Users browsing this thread: 10 Guest(s)