SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 15/09/2017, 11:31 AM   #61
metelicgamer
Little Clucker
 
metelicgamer's Avatar
 
Join Date: Sep 2017
Posts: 14
Reputation: 0
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

cant make myself admin!!! i loginn with my rcon and used /setlevel 0 5 error palyer must be rigstered to be admin


but am registered!!!!!!!!! for them am not

i cant find any name in db file (users)

help!
metelicgamer is offline   Reply With Quote
Old 20/09/2017, 05:34 PM   #62
-Sam_hero-
Big Clucker
 
-Sam_hero-'s Avatar
 
Join Date: Oct 2011
Location: Palestine.
Posts: 79
Reputation: 18
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Good work man, keep it up
Hope to have an another system with is more futured than ladmin and luxadmin..
If you're planning on such things, if you think about a new admin system futured would be great
anyways, good luck mate.
__________________

-Sam_hero- is offline   Reply With Quote
Old 20/09/2017, 05:39 PM   #63
Xeon™
Banned
 
Join Date: Jul 2017
Location: Earth
Posts: 457
Reputation: 96
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by -Sam_hero- View Post
Good work man, keep it up
Hope to have an another system with is more futured than ladmin and luxadmin..
If you're planning on such things, if you think about a new admin system futured would be great
anyways, good luck mate.
are you serious right now?
Xeon™ is offline   Reply With Quote
Old 04/05/2018, 04:26 AM   #64
BanSilog
Big Clucker
 
BanSilog's Avatar
 
Join Date: Nov 2017
Location: Philippines
Posts: 94
Reputation: 16
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Galing talaga mga pinoy! sali naman ako sa server mo kuya jake?
BanSilog is offline   Reply With Quote
Old 10/10/2018, 02:14 AM   #65
zF3lKy3
Big Clucker
 
Join Date: Aug 2018
Location: Fortaleza - CE
Posts: 154
Reputation: 0
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by JaKe Elite View Post
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.)
Good work, JaKe, I hope you release version 5.1 in MySQL and add and fix some things, L-Admin, and one of the best admin systems I've ever seen, your idea was great at editing L-Admin SA:MP 0.3.7, I hope you continue this project, sorry, I am not fluent in English!
zF3lKy3 is offline   Reply With Quote
Old 14/01/2019, 04:06 PM   #66
JaKe Elite
High-roller
 
JaKe Elite's Avatar
 
Join Date: Apr 2012
Location: Philippines
Posts: 3,708
Reputation: 489
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

I might update this script into mySQL and perhaps include a UCP as well? Damn its been awhile!!
__________________
Discord: Cipher#7353
__________________


Server IP: Click me | Discord: Click me

You challenged us, What you want is what you get.
JaKe Elite is online now   Reply With Quote
Old 23/01/2019, 12:32 AM   #67
SonnyGamer
Huge Clucker
 
SonnyGamer's Avatar
 
Join Date: Jun 2017
Location: Finland
Posts: 324
Reputation: 85
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by JaKe Elite View Post
I might update this script into mySQL and perhaps include a UCP as well? Damn its been awhile!!
Interesting

I would like to participate in testing it
__________________
Discord: SonnyGamer#6603
Server Discord: https://discord.com/invite/AQNA4ka
SonnyGamer is offline   Reply With Quote
Old 25/04/2020, 02:45 AM   #68
zF3lKy3
Big Clucker
 
Join Date: Aug 2018
Location: Fortaleza - CE
Posts: 154
Reputation: 0
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Quote:
Originally Posted by JaKe Elite View Post
I might update this script into mySQL and perhaps include a UCP as well? Damn its been awhile!!
I'm still waiting for this big update from L-Admin when will this update come out?
zF3lKy3 is offline   Reply With Quote
Old 26/04/2020, 01:50 AM   #69
xbp13x
Little Clucker
 
xbp13x's Avatar
 
Join Date: Apr 2020
Location: Canada
Posts: 25
Reputation: 8
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

Great remake, readded some removed commands myself. Also found a glitch when you ban someone else it sets YOUR account status to banned and not the other players.

You must change: PlayerInfo[playerid][Banned] = 1; to PlayerInfo[player1][Banned] = 1;
xbp13x is offline   Reply With Quote
Old 07/05/2020, 03:17 PM   #70
xbp13x
Little Clucker
 
xbp13x's Avatar
 
Join Date: Apr 2020
Location: Canada
Posts: 25
Reputation: 8
Default Re: L-Admin [LethaL's Adminscript] - Reissued ; Heavily Modified/Edited

I am having an issue,

It seems like the script works for a couple of days great then seemly randomly everything about the script stops working. It is still loaded but it won't call anything and all commands do not work as well. The script just.... dies completely. Not sure if anyone else has run into this issue? I can't see any pattern happening and the logs shows nothing. Maybe ill have to add a print to every single part of the script to see if anything specific is causing it
xbp13x 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 05:39 PM
lethal admin script Face9000 Help Archive 0 06/09/2010 09:28 AM
LethaL's adminscript Libra Help Archive 6 08/05/2010 03:59 PM


All times are GMT. The time now is 09:09 AM.


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