SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/09/2016, 12:27 AM   #1
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,631
Reputation: 444
Default L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

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 Y_Less)
  • 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, Y_Less, 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.)
__________________

Click here to connect to Opis Gaming Roleplay
Known as Elaine Patterson on Opis-Gaming Roleplay (Server Admin)

Last edited by JaKe Elite; 24/08/2017 at 11:01 PM.
JaKe Elite is offline   Reply With Quote
Old 08/09/2016, 12:32 AM   #2
Ultraz
Banned
 
Join Date: Aug 2016
Location: Egypt
Posts: 213
Reputation: 19
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Nice work.

Last edited by Ultraz; 17/09/2016 at 02:47 AM.
Ultraz is offline   Reply With Quote
Old 08/09/2016, 02:37 AM   #3
Zorono
Huge Clucker
 
Zorono's Avatar
 
Join Date: Dec 2015
Location: GetPlayerPos(271055, Float:xCord, Float:yCord, Float:zCord);
Posts: 361
Reputation: 26
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Good Work Sir
+Repped
But do you have a premssions from the Real Developer/Scripter to Edit + Rerelease His Ladmin ??
Zorono is offline   Reply With Quote
Old 08/09/2016, 03:03 AM   #4
Ultraz
Banned
 
Join Date: Aug 2016
Location: Egypt
Posts: 213
Reputation: 19
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by Zorono View Post
But do you have a premssions from the Real Developer/Scripter to Edit + Rerelease His Ladmin ??
Do you think JaKe will forget something like that?
Ultraz is offline   Reply With Quote
Old 08/09/2016, 06:58 AM   #5
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,631
Reputation: 444
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by Zorono View Post
Good Work Sir
+Repped
But do you have a premssions from the Real Developer/Scripter to Edit + Rerelease His Ladmin ??
I have made a topic of it regarding to the take over of LAdmin at Everything and Nothing section, Check this out.

As long as I kept the original credits I will be fine, besides LethaL is long time gone off SAMP so why bother asking for permission?
__________________

Click here to connect to Opis Gaming Roleplay
Known as Elaine Patterson on Opis-Gaming Roleplay (Server Admin)
JaKe Elite is offline   Reply With Quote
Old 08/09/2016, 07:04 AM   #6
SickAttack
Godfather
 
Join Date: Dec 2013
Posts: 5,167
Reputation: 751
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

What's new?
SickAttack is offline   Reply With Quote
Old 08/09/2016, 07:14 AM   #7
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,631
Reputation: 444
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

There are nothing new for now, I have made some changes and some minor error fixes, I have also re-touched the messages colors which is quite annoying if you will ask me..
__________________

Click here to connect to Opis Gaming Roleplay
Known as Elaine Patterson on Opis-Gaming Roleplay (Server Admin)
JaKe Elite is offline   Reply With Quote
Old 08/09/2016, 08:14 AM   #8
markparker12
Banned
 
Join Date: Sep 2015
Posts: 217
Reputation: 25
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Finally you made it! Ladmin one of the best admin system is improved, cheers
markparker12 is offline   Reply With Quote
Old 08/09/2016, 09:15 AM   #9
Younes44
Gangsta
 
Younes44's Avatar
 
Join Date: Oct 2013
Posts: 823
Reputation: 78
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

but you have changed only saving data ?..
anyway good work :V
__________________
Currently Playing on - MW4
IP: 5.39.27.222:7777
Name: Bryan_ Retired Staff
Code:
FOK University, FOK Everything
Younes44 is offline   Reply With Quote
Old 08/09/2016, 10:57 AM   #10
HeLiOn_PrImE
High-roller
 
HeLiOn_PrImE's Avatar
 
Join Date: Jul 2010
Location: Cluj Napoca, Romania
Posts: 2,840
Reputation: 384
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by Younes44 View Post
but you have changed only saving data ?..
anyway good work :V
That itself is a very big deal, because we don't have to handle thousands of files anymore.

Have my humble +rep Jake! You deserve loads of it.
Are you planning on updating it again any time soon? If so, here are 2 suggestions:
  • A tuning menu - I don't know what ltune is supposed to do. All it did for me was making my car black and adding hydraulics and NOS. If you'd like to add a menu like this, feel free to use mine.
  • When the player spawns a vehicle you should put them directly in it.
I'll come up with more, if I think of anything.
__________________

"It's only a game, but people are real. You have to respect them." - Mick88
"You don't deserve a +rep, if you ask for it. Those who deserve it, don't have to ask." - me


Last edited by HeLiOn_PrImE; 08/09/2016 at 11:39 AM.
HeLiOn_PrImE 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
Lethal Admin Script legodude Scripting Help 1 17/03/2012 06:39 PM
lethal admin script Face9000 Help Archive 0 06/09/2010 10:28 AM
LethaL's adminscript Libra Help Archive 6 08/05/2010 04:59 PM


All times are GMT. The time now is 02:21 PM.


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