SA-MP Forums Archive
[FilterScript] L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited (/showthread.php?tid=616614)

Pages: 1 2


L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - JaKe Elite - 07.09.2016

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
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
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
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.)


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - Ultraz - 07.09.2016

Nice work.


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - Zorono - 08.09.2016

Good Work Sir
+Repped
But do you have a premssions from the Real Developer/Scripter to Edit + Rerelease His Ladmin ??


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - Ultraz - 08.09.2016

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?


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - JaKe Elite - 08.09.2016

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?


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - SickAttack - 08.09.2016

What's new?


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - JaKe Elite - 08.09.2016

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..


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - markparker12 - 08.09.2016

Finally you made it! Ladmin one of the best admin system is improved, cheers


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - Younes44 - 08.09.2016

but you have changed only saving data ?..
anyway good work :V


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - HeLiOn_PrImE - 08.09.2016

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:I'll come up with more, if I think of anything.


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - Quinncell - 08.09.2016

I get that Harley Quinn is hot but do you have to be a crazy fan girl/boy lol?
The edit is really good, well done Harley!


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - markparker12 - 08.09.2016

Quote:
Originally Posted by JaKe Elite
Посмотреть сообщение
There is a problem though that avoids me from using MySQL, I am using Windows XP which is very old and not compatible on today's plugins ; I have few reasons why I am still using XP and don't even ask why the hell am I using it... (Latest version of MySQL doesn't run well on my PC however the older version runs smoothly)
Quote:
Originally Posted by Sreyas
Посмотреть сообщение
dual boot....
Or use virtual machine even better.


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - Crystallize - 08.09.2016

Код:
     Connect to your server with LAdmin loaded into your server.
    Login to your RCON (/rcon login [your rcon password])
    Type /setlevel [your level] 5
a typo in /setlevel [your level] should be [your id] :P
Nice release , I know you've worked hard on this one


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - JaKe Elite - 08.09.2016

Thank you so much for the compliments guys!

@KeithCooper; Cos Harley Quinn is baee, shee mah girl chu know. So fuck em Joker

@Wizzard2H; Fixed


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - JaKe Elite - 09.09.2016

Thank you so much @Dwayne Michael.

BTW about the MySQL thingy, what the hell is dual boot and virtual machine?

@ JakAdmin will be now released today!


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - SickAttack - 09.09.2016

Quote:
Originally Posted by JaKe Elite
Посмотреть сообщение
Thank you so much @Dwayne Michael.

BTW about the MySQL thingy, what the hell is dual boot and virtual machine?

@ JakAdmin will be now released today!
Just download XAMPP for Windows, start the MySQL and Apache server. Open your browser and go to "localhost/phpmyadmin", there you can access the database manager. The details to connect to the database is username "root" and password "" (blank, no password), database is the one you will create with phpMyAdmin.


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - JaKe Elite - 10.09.2016

Do I really have to use the Threaded Version of MySQL? The threaded version isn't supported atm on my PC.


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - markparker12 - 10.09.2016

Quote:
Originally Posted by JaKe Elite
Посмотреть сообщение
BTW about the MySQL thingy, what the hell is dual boot and virtual machine?
As you said, that you have windows XP and it does not support mysql then you can:

1)Dual Boot(not recommend) - Installing 2 windows on same machine
2)Virtual Box/Virtual Machine : Installing a window without boot, I mean installing it with a software and you can adjust the resources andv no need to use it with boot, just open the software and select the virtual machine.


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - SickAttack - 10.09.2016

You could use SQLite, or just connect to a database set up with cPanel if you have web hosting.


Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited - Gotham - 10.09.2016

Gonna try this in-game