SA-MP Forums Archive
[FilterScript] JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - 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] JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) (/showthread.php?tid=554546)

Pages: 1 2 3 4 5


JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - JaKe Elite - 04.01.2015

JaKe's Admin System 3.5
Last Update: August 21, 2017

Click here for the latest version of JakAdmin4

UPDATE YOUR JAKADMIN TO THE NEW VERSION!

Thank you to Ultraz & denNorske for providing me a temporary host for this Beta-Test, I appreciate it guys! Also thank you to my friends; Milica (Queen), NotDunn, Kizuna, YaBoiJeff (Sean), Pavintharan for participating the Beta-Test
Introduction

RomAdmin (now known as JakAdmin3) started off @ September 9, 2012. RomAdmin is the very first version of JakAdmin, the admin system, however, is buggy the project has been shut down @ December 12, 2012. I have made some few attempts on reviving it but I failed. At April 2, 2013 a new version of RomAdmin has been released under the name JakAdmin and since then JakAdmin is born, The admin system itself started off @ dini, from v2.0 reaching to v2.9. There are a lot of features back then such as the Cookie System and JakAdmin Point System, the project has been stopped again @ July 15, 2014. JakAdmin3 project started on October 26, 2014 and the public beta testing was held on December 27, 2014. The original plan was JakAdmin3 will be released on New Years Eve 2015 but my PC got some sort of problem related to its AVR, the release date was moved to January 4, 2015 and since then JakAdmin3 is born (without the project getting shut down after 1 year later..)

This is basically an admin system just like many other else, However, I felt that this one has the best features. The admin system itself is originally based off from LAdmin and LuxAdmin combined but since then I decided to rely on my own ideas instead of copying someone else's work. Don't get confused why the re-issued LAdmin somehow has the same thread format like this, LAdmin's project is now handled by me. Feel free to use the admin system itself, and if you wanted to edit and re-issued your own version of it under your name make sure to send a Private Message.

Information/Features Commands

Player Commands (/jcmds)
/stats /cpass /register /login /report /admins /jcredits /savestats /vips /cquestion

VIP Commands (/vcmds)


Admin Commands (/jacmds)


Note

For 3.4, An include support+ has been added. If you have VIP system disabled, CheckVip will always return 1 no matter what. Other than that there is no problem, Just to be sure if you found any problems on the include support+ just post it down and I will check it out later.

If you've experienced some odd technical errors, Please file in a bug report at this thread or better yet PM me.

Installation
  1. Open the JakAdmin rar file
  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 JakAdmin, in the line filterscripts, add "jadmin3" (Without quote) so it will be look like this for example.
    filterscripts jadmin3 td

  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 these on the server.cfg (plugins line)
Windows Users: sscanf whirlpool libRegEx
Linux32 Users: sscanf.so whirlpool.so libRegEx.so (libRegEx.so can be found inside JakAdmin.rar./plugins/linux32)
Linux Static Users: sscanf.so whirlpool.so libRegEx_static.so (libgRegEx_static.so can be found inside JakAdmin.rar/plugins/linuxstatic)

For Windows Users - Extract onig.dll next to samp-server.exe (outside the plugins folder, onig.dll can be found right after you open the JakAdmin rar)

For Linux32 Users - Extract libgonig.so.2 outside the plugins folder, The file can be found at JakAdmin/plugins/linux32

-----------------------

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

How To Make Yourself Admin?
  1. Connect to your server with the jadmin3.amx (JakAdmin3) loaded into your server.
  2. Login to your RCON (/rcon login [your rcon password])

    (( If the 2nd Protection of JakAdmin3 is enabled ))
  3. Type the 2nd RCON password (If you haven't edited the script yet the password is changeme)
  4. Type /makemegodadmin and you are done.

    (( If the 2nd Protection of JakAdmin3 is disabled ))
  5. Type /makemegodadmin and you are done.
JakAdmin3 Include

Code:
native SetPlayerGameTime(playerid, hour, minute, second);
native GetPlayerGameTime(playerid, &hour, &minute, &second);
native SetPlayerChocolate(playerid, amount);
native GetPlayerChocolate(playerid);
native vipcheck(playerid);
native CheckLogin(playerid);
native SetPlayerLogged(playerid, toggle);
native CheckVip(playerid);
native SetPlayerVip(playerid, level);
native SavePlayer(playerid);
native CheckAdmin(playerid);
native SetPlayerAdmin(playerid, level);
native CheckPlayerMute(playerid);
native CheckPlayerMuteSecond(playerid);
native CheckPlayerCMute(playerid);
native CheckPlayerCMuteSecond(playerid);
native SetPlayerMute(playerid, toggle);
native SetPlayerMuteSecond(playerid, seconds);
native SetPlayerCMuteSecond(playerid, seconds);
native CheckPlayerJail(playerid);
native CheckPlayerJailSecond(playerid);
native SetPlayerJail(playerid, toggle);
native SetPlayerJailSecond(playerid, seconds);
native CheckAccountID(playerid);
native CheckPlayerWarn(playerid);
native SetPlayerWarn(playerid, warn);
native CheckPlayerKills(playerid);
native SetPlayerKill(playerid, kill);
native CheckPlayerDeaths(playerid);
native SetPlayerDeath(playerid, death);
How To Check For Admin Level

PHP Code:
CMD:mycommand(playeridparams[])
{
    
LoginCheck(playerid); //Always add this.
    
LevelCheck(playerid1); //Level 1 admin, Change 1 to anything you want (1 to 5).
    
    //Place your script code here.
    
return 1;

How To Check For VipLevel

Note; Make sure the VIP system is enabled.

PHP Code:
CMD:mycommand(playeridparams[])
{
    
LoginCheck(playerid); //Always add this.
    
VipCheck(playerid1); //Level 1 vip, Change 1 to anything you want (1 to 3).
    
    //Place your script code here.
    
return 1;

How To Check For Admin Level On Your Script

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

How To Check For Vip Level On Your Script

Note; Make sure the VIP system is enabled.

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

Opening .db Files

JakAdmin3 uses .db files (SQLite default format for saving), 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:





Tracking Player's Last Used IP(s)

Have you ever always wanted to track down someone who is trying to connect to your account or to someone's account? Do you want to track down a multi-accounter or a possible user who is using VPN? You may now track down all of the used IPs of that player (however only 10 IPs can be listed in game with the command /ips).

Note: If you have the same IP and it's already written/registered in the database, The script will delete the old one and write a new one with the new registered date & time.


Leaving Note(s) To Players

You may leave a note to a player for other administrator(s) to see.
Example Scenarios: Player is possibly hacking, a multi-accounter and you wanted to let the other admins know.

You can issue the note to offline players or view them even the player is offline. (/onote and /onotes)



Admin Panel

For administrators level one+, Double click on the player's name in player-tab in order to open the admin-panel dialog.


Configuration

config.ini has returned since the very last version of JakAdmin (which is v2.9) - You can now edit the stuffs that is found from earlier version of JakAdmin3 in-game with ease! You can now also edit the admin ranks and VIP ranks through /jsettings!


Screenshots


Changelog

Version 3.5 Version 3.4.2 Version 3.4.1 (4th Anniversary!)
Downloads

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

•• Version •••• Release Date •••• Link •••• Upload Site •••• SAMP Version •••• Progress •••• Status ••
3.508/21/17ClickZippyShare0.3.7LATEST
3.4.201/26/17ClickZippyShare0.3.7Outdated
3.4.109/09/16ClickZippyShare0.3.7Outdated
3.402/07/16ClickSolidfiles0.3.7Outdated
3.3.101/11/16ClickSolidfiles0.3zOutdated
Credits

_Jake_, ******, DracoBlue, Zeex, Zher0, Lordzy, SickAttack, Koala818, Twiix
Milica, NotDunn, Kizuna, YaBoiJeff (Sean), Pavintharan, denNorske
Ranveer, Harvey, Ultraz Samp_India, Ashirwad, Sonic, Adham, MaxFranky and others who helped us.

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: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - HY - 04.01.2015

Oh, nice.

First.


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Team_PRO - 04.01.2015

Nice Update


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - PT - 04.01.2015

Why don't you use GitHub? Its perfect for this.


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Ryan_Bowe - 04.01.2015

Did not expect another version of JakAdmin. I will not be using it, but so far it looks to be another great release of JakAdmin.


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - GenzT - 04.01.2015

Nice ! Keep it up !


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Arxalan - 04.01.2015

#include <OPRL>
You didn't posted the link of this include (it is in line no 222)


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Arastair - 04.01.2015

Nice jake


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - JaKe Elite - 04.01.2015

Updating the download link, JakAdmin3 has a missing include on the file (OPRL)


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Ryz - 04.01.2015

cool! nice release..


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Arxalan - 04.01.2015

It is Perfect.


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - JaKe Elite - 05.01.2015

Quote:
Originally Posted by Lordzy
View Post
The OPRL used on this script is an old one, I recommend you to use the latest OPRL because it's optimized and has also got an important fix.

Raw source (OPRL3) - https://raw.githubusercontent.com/Lo...ster/OPRL3.inc

I just ran through your script and noticed these :

1) The ban functions does not escape reason, which could lead to SQL injection. (This is something that you've to fix ASAP, rather than the suggestions below to improve memory and performance.)
2) You've included foreach, but there are still certain parts where it loops through connected players using normal for-loop. Functions such as "ConnectedPlayers" could return (Iter_Count(Player)) instead.
3) Variables such as "accountMuted" or "accountCMuted" only uses values from 0-1, it could be booleans. Or to save more memory, bit-flagging method can be used.
Sure thing, It will be fixed in the upcoming patches.


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - UpSMaX - 05.01.2015

:3 using it !!


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - amirab - 05.01.2015

Nice again , But try to make it in MySQL for next version , it will be really better


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Tween73 - 06.01.2015

RconPass no

RconPass delete...


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - JaKe Elite - 06.01.2015

Hm? What do you mean?


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Arxalan - 07.01.2015

The scriptfiles don't have juser.db please upload that file because some people don't know how to make a new file with tables / fields (including me).


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - JaKe Elite - 07.01.2015

It is in JakAdmin3's folder.


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - Arxalan - 07.01.2015

It isn't there . I checked it in Scriptfiles/JakAdmin3's but it isn't available.


Re: JakAdmin3 - User-Friendly/Fast/Efficient (zcmd,sscanf2,foreach,SQLite) (ReMaKe) - XinGeR - 07.01.2015

aw nice!