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- Working at the latest SAMP version.
- Save Skin Feature (<- 3.5)
- Vote Kick System (<- 3.5)
- Tracking (10) last used IP of Players (<- 3.5)
- Deploying 3D Text Labels (<- 3.5)
- Note System (<- 3.5)
- Custom Ban System (w/ Ban IDs & Ban IP <- 3.4.1)
- SQLite Saving System.
- UserID system
- Option settings for players (Friendly-User).
- Password hashed (Whirlpool by ******)
- 103+ administrative/player commands.
- Report System
- VIP System (version 3.4+)
- Admin Include Support+ jadmin3.inc
- Immune System (Admins cannot use commands to higher admins)
- Fully working Anti Advertisement System (thanks to SickAttack)
- (NEW) Admin Ranks & VIP Ranks can now be edited In-Game (3.4.1+)
- Safe RCON Protection (thanks to Lordzy)
- Report System (with IDs, managed by admins in-game)
- and much more to discover by yourself.
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
- Open the JakAdmin rar file
- Extract the 4 folders, filterscripts/pawno/plugins and scriptfiles to your server files.
- Open server.cfg from your server files.
- To load JakAdmin, in the line filterscripts, add "jadmin3" (Without quote) so it will be look like this for example.
filterscripts jadmin3 td
- Now after loading the filterscript, we're not done yet, Go to the line plugins (if there's no line plugins add one)
- 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?
- Connect to your server with the jadmin3.amx (JakAdmin3) loaded into your server.
- Login to your RCON (/rcon login [your rcon password])
(( If the 2nd Protection of JakAdmin3 is enabled ))
- Type the 2nd RCON password (If you haven't edited the script yet the password is changeme)
- Type /makemegodadmin and you are done.
(( If the 2nd Protection of JakAdmin3 is disabled ))
- 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(playerid, params[])
{
LoginCheck(playerid); //Always add this.
LevelCheck(playerid, 1); //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(playerid, params[])
{
LoginCheck(playerid); //Always add this.
VipCheck(playerid, 1); //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(playerid, params[])
{
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(playerid, params[])
{
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- Vote Kick System added.
- /jsettings moved to level 4 admins.
- Few script optimizations (lowering the string usage)
- Brought back the Save-Skin feature.
- /specoff and /spec has been combinted together.
- Added Head Admin Chat for Level 4+ admins
- Added Temporary-Level Promotion System.
- Added Log Checks on Report (for Owners+)
- Ability to enter on vehicles (/entercar)
- Tracks all the IP that the player has been used. (/ips [account name])
- Admins ability to change an account's password (level 4 admins)
- Ability to give player's to mega-jump (/megajump)
- Adjustments on /explode and /explodeall.
- /respawncar has been added.
- /radiusrespawn has been added (in-short: /rr) - Respawn cars within radius.
- Level 4+ admins can now give player /god (/allowgod)
- Ability to manipulate/control player's wanted level. (/setwanted)
- Ability to manipulate/control player's drunk level. (/setdlevel)
- Admins Level 3+ has now ability to hide their markers.
- Patched OPRL include to it's latest version.
- Removal of RegEx for detecting Server Advertisement.
- Player's current online time (not TOTAL time) are now counted.
- Level Four Admins+ ability to manipulate player's total-playing time.
- Added a Chocolate Bar system (can be controlled through jadmin3.inc)
- Revised Read Commands (you may switch modes from "Global" to "Spectating Player")
- Ability to deploy 3D Text Labels ("#MAX_DEPLOYABLE_LABEL" - Default is 30)
- New Note System (leave notes to a specific player for other admins to read)
- You no longer need a parameter on /stats when you want to view your own stats.
- Players can skip registration and register later. (Can be toggled on /jsettings)
- Scores & Cash does save now (Bugged Fixed that isn't noticed on the recent update)
- TAB: Quick Easy Admin Access by clicking on players name. (+ players can report by clicking on players name)
Version 3.4.2- Adjusted the codes on loading the player's ban.
- Adjusted the codes on loading the player's statistics.
- Replaced these old comments on the script, making it more detailed.
- Removed a timer which syncs the player's score and player's money to JakAdmin3s.
- Re-adjusted the God System to the Ping Kick timer.
- Re-worked on the Report System.
- Admins are now invincible when they are on duty, No damages sustain from players!
Version 3.4.1 (4th Anniversary!)
- IMPORTANT; Fixed VIP System; The VIP level now saves.
- Re-worked on the way how JakAdmin3 creates the tables & database. Along with the messy way of how JakAdmin3 inserts a new player data!
- Added the VIP level on /stats (Thank you for reminding me Twiix)
- /vips command has been added (Again, thanks to Twiix)
- Improved the Vehicle Spawn code abit;
- Re-touched the script a little bit.
- /cpass is now invisible from the Read Commands.
- The return of the config.ini, Welcome back dini (Ew)
- Removed the word JakAdmin3 from the register & login dialog.
- After reaching the maximum warning on Security Question, you will get kicked!
- /stats completely re-designed.
- Player's can now change their Security Question and Security Answer. (They have to input their passwords first)
- Re-introducing the old Anti-Swear & Anti-Name system of JakAdmin (based off from LAdmin, thanks LethaL!)
- Minor fix on /vcmds.
- Re-introducing the admin ranks (saved along with config.ini, editable IG, /jsettings)
- Re-introducing /admins on dialog, + /vips too!
- Admin Chat has been moved back to it's old style (E.G.; #hey guys!) Same goes to VIP Chat.
- Kick Delay has been decreased from 2000ms to 800ms.
- Added BanID on the ban table (+ improved the ban system a little bit, banning the player's IP as well)
- Added a /crash command (* the same as of LAdmin5's /crash)
- Removed GetPlayerColor @ /ip.
- /cname now renames the player's account.
- Typing none on /cquestion now disables the Security Question&Answer all together. (the word none is disabled though on the main setup of Securtiy Question&Answer)
- A new anti-advertisement system (thanks to SickAttack)
Downloads
Download links below, Press click to get directed to the file.
•• Version •• | •• Release Date •• | •• Link •• | •• Upload Site •• | •• SAMP Version •• | •• Progress •• | •• Status •• |
3.5 | 08/21/17 | Click | ZippyShare | 0.3.7 | | LATEST |
3.4.2 | 01/26/17 | Click | ZippyShare | 0.3.7 | | Outdated |
3.4.1 | 09/09/16 | Click | ZippyShare | 0.3.7 | | Outdated |
3.4 | 02/07/16 | Click | Solidfiles | 0.3.7 | | Outdated |
|
3.3.1 | 01/11/16 | Click | Solidfiles | 0.3z | | Outdated |
|
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
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!