Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] JakAdmin | 100+ available commands | SQLITE + YINI | Rich in features

$
0
0


JaKe's Admin System 4.0
Last Updated: January 1, 2018


Difference between JakAdmin4 & JakAdmin3

PAY ATTENTION TO EVERYONE THAT USES JAKADMIN3!!!!!

With this thread being separated from JakAdmin3, there is nothing much changed between those scripts except that the folder for JakAdmin over scriptfiles was renamed instead of having "JakAdmin3" as the folder name it was renamed to "JakAdmin". The include was also renamed from "jadmin3.inc" to "jadmin.inc" please make sure to update the scripts that uses jadmin3.inc!

The .pwn name file for JakAdmin4 was also renamed from jadmin3.pwn to jadmin.pwn

This script is well more optimized than JakAdmin3, VIP System was completely removed from the script making it a standalone admin script once again.

Features
  • SQLite + y_ini
  • Vote Kick System
  • Safe RCON Protection
  • Private Message System
  • Deploying 3D Text Labels
  • Whirlpool Password HAshing
  • Security Question (to recover your account)
  • Tracking (10) last used IP of Player
  • Modifiable Configurations In Game
  • Script Compatibility (jadmin.inc)
  • Admin Ranks can be edited in game.
  • 100+ commands available for players & admins.
  • Improved Ban System (with Temporary Ban support)
  • Built in Anti-Server Advertisement System
  • High Admins are immune from any commands.
  • AFK/Tabbed Players Detection
  • Breach System (list down all IPs who attempted to login to your account)

Commands
  • Code:

    Player Commands:
            * /stats                        -        Displays player's statistics. (Level 1+ admins can view other player's statistics)
            * /cpass                        -        Change your account's password.
            * /register                        -        Register your name and make an account.
            * /login                        -        Logins to your account.
            * /report                        -        Reports a player to online administrators.
            * /admins                        -        Lists all online administrators (excluding the hidden ones)
            * /jcredits                        -        Lists all the credits that participated/helped building JakAdmin.
            * /savestat                        -        Saves your statistics (player's choice)
            * /cquestion                        -        Change your account's security question (+ changes the security answer by default)
            * /votekick                        -        Start a vote kick against a player.
            * /yes                                -        Votes YES over a on-going votekick poll.
            * /no                                -        Votes NO over a on-going votekick poll.
            * /givechocolate                -        Gives a chocolate bar to a player.
            * /pm                                -        Sends a private message to a player.
            * /togpm                        -        Enable/Disables from receiving Private Message (+ restricting you from using /pm as well)
            * /id (getid)                        -        Looks for a specific part of name, listing down the player's name if a match has been found.
           
    Level 1 Admin Commands:
            * /announce                        -        Pops a game text message to everyone.
            * /kick                        -        Kicks a player from the server.
            * /asay                        -        Sends a chat to everyone with an admin prefix before your name.
            * /settime                        -        Sets a player's game time.
            * /setweather                        -        Sets a player's game weather.
            * /goto                        -        Teleport to a player.
            * /ip                                -        Displays player's IP address.
            * /spawn                        -        Respawn a player.
            * /gotoco                        -        Teleport to a specific coordinates (E.G.: /gotoco 0.0,0.0,0.0 - teleports you to Blueberry)
            * /flip                        -        Flips a vehicle. (specify a vehicleID and it will flip that vehicle)
            * /warn                        -        Warns a player.
            * /remwarn                        -        Removes the player's warning (the very recent one)
            * /addnos                        -        Adds a nitrous to player's current vehicle.
            * /repair                        -        Repairs player's current vehicle.
            * /reports                        -        Lists down all in-pending player-reports.
            * /handlereport                -        Handle a in-pending player-report.
            * /denyreport                        -        Close & Deny a in-pending player-report.
            * /endreport                        -        End a player-report that you are currently handling.
            * /reporttalk                        -        Communicate with the reporter of that report.
            * /aduty                        -        Switches from Playing to DUTY on (or vice versa)
            * /weaps                        -        Lists down all the player's weapon.
            * /votekicktime                -        Sets amount of duration before the voting ends.
            * /endvotekick                        -        Ends a current on progress votekick poll.
            * /setwanted                        -        Sets player's wanted level.
            * /setdlevel                        -        Sets player's drunk level.
            * /entercar                        -        Enter inside a vehicle.
            * /saveskin                        -        Save a skinID that later you can use when you spawn.
            * /useskin                        -        To use a saved skin.
            * /checkdamage                        -        Checks the last 5 players who damaged the specific inputted playerID.
            * /tabbed                        -        Lists down all tabbed out players.
            * /afk                                -        Lists down all AFK players.
            * /richlist                        -        Lists down the Top 5 rich players.
            * (/o)aka                        -        Checks if a player has a very recent record of using other names.
            * /god                                -        Makes you invulnerable from damages unless turned off or admin-killed.
            * /hideme                        -        Hides yourself from the /admins list.
            * /laston                        -        Checks the last time when the player logged in to the server.
            * /ostats                        -        Displays the statistic of a offline player.
           
    Level 2 Admin Commands:
            * /disarm                        -        Removes all of the weapon that player's possessed.
            * /explode                        -        Deploys a loud explosion to player's position (only visible to them)
            * /setinterior                        -        Change player's interior (default: 0)
            * /setworld                        -        Change player's virtual world (default: 0)
            * /heal                        -        Heals a player.
            * /armour                        -        Gives a full armour to a player.
            * /clearchat                        -        Clears the server-chat.
            * /setskin                        -        Change a player's skin.
            * /mute                        -        Mute a player from talking on the chat.
            * /unmute                        -        Unmute a player from talking on the chat.
            * /akill                        -        Kills a player.
            * /spec                        -        Spectate a player. (/spec off to turn it off)
            * /car                                -        Deploy/Spawn a specific vehicle.
            * /carcolor                        -        Change the vehicle's color.
            * /eject                        -        Remove a player from the vehicle.
            * /setvhealth                        -        Sets vehicle's health.
            * /givecar                        -        Spawn a vehicle for a player.
            * /muted                        -        Lists all the players that is /mute'd.
            * /jailed                        -        Lists all the players that is /jail'd.
            * /jail                                -        Puts a player into a jail cell for a specific amount of time.
            * /unjail                        -        Release a player off the jail cell.
            * /aweapons                        -        Spawn admin-weapons.
            * /jetpack                        -        Deploys a /jetpack. (You can also give jetpack to players if you put their ID)
            * /carpjob                        -        Change the vehicle's paintjob.
            * /addlabel                        -        Create a 3D Text Label.
            * /destroylabel                -        Destroy a 3D Text Label.
            * /gotolabel                        -        Teleport to a 3D Text Label.
            * /radiusrespawn                -        Respawn a vehicle within a specific radius.
            * /respawncar                        -        Respawn a specific vehicle.
            * /ips                                -        List down the last 10 used IPs of a player.
            * /checkbreach                        -        List down the last 10 IPs that attempted to login to a player's account.
            * /cage                                -          Deploys a cage around the player (only visible to them)
            * /uncage                        -        Removes a player from the cage.
            * /caged                        -        Lists down all the player that is in the cage.
           
    Level 3 Admin Commands:
            * /setmoney                        -        Set a player's money.
            * /setscore                        -        Set a player's score.
            * /setcolor                        -        Set player's color name.
            * /slap                        -        Slap a player.
            * /cname                        -        Change a player's name (changing the account's name in general)
            * /banip                        -        Bans a player IP.
            * /unbanip                        -        Unbans a player IP.
            * /giveweapon                        -        Gives a player weapon to a player.
            * /freeze                        -        Freeze a player from moving.
            * /unfreeze                        -        Unfreeze a player.
            * /getall                        -        Teleports all the player to your location.
            * /bankrupt                        -        Resets a player's money to zero.               
            * /teleplayer                        -        Teleports a player to another player.
            * /destroycar                        -        Destroys the player-spawned /car.
            * /sethealth                        -        Set player's health.
            * /setfstyle                        -        Set player's fighting style.
            * /healall                        -        Heals all players.
            * /armourall                        -        Gives armour to all players.
            * /force                        -        Forces a player back to class selection.
            * /write                        -        Write a message, sending it to the chat.
            * /get                                -        Teleport a player to your position.
            * /oban                                -        Issues a offline ban to a offline player.
            * /forbidword                        -        Adds a word that is forbidden (auto-censored when AntiSwear is ON)
            * /crash                        -        Crashes a player's game.
            * /setvotekicklimit                -        Set an amount of required votes before a player can get kicked from votekick poll.
            * /hidemarker                        -        Hides player's marker (blip).
            * /setchocolate                        -        Set a player's chocolate bar.
            * /checkban                        -        Checks if a player is banned.
            * /jconfig                        -        Displays all the current configuration settings of JakAdmin.
           
    Level 4 Admin Commands:
            * /saveallstats                -        Save all player's statistics.
            * /cleardwindow                -        Clear the death window.
            * /respawncars                        -        Respawn all unoccupied vehicles.
            * /setallweather                -        Sets all player's weather.
            * /setalltime                        -        Sets all player's time.
            * /giveallweapon                -        Give all player a weapon.
            * /giveallcash                        -        Give all player a cash.
            * /giveallscore                -        Give all player a score.
            * /kickall                        -        Kicks all player from the server.
            * /disarmall                        -        Remove all player's weapon.
            * /mutecmd                        -        Mute a player from using command.
            * /unmutecmd                        -        Unmute a player from using command.
            * /setallskin                        -        Sets all player's skin.
            * /fakedeath                        -        Sends out a fake death window displaying that a player killed another player.
            * /cmdmuted                        -        Lists down all player that is muted from using command.
            * /lockchat                        -        Enables/Disables the chat.
            * /gmx                                -        Restarts the server.
            * /setonline                        -        Sets the player's total online time.
            * /jsettings                        -        Change the configuration of JakAdmin
            * /setpass                        -        Set a player's account password.
            * /giveallchocolate                -        Gives all players a chocolate.
            * /reloadcfg                        -        Reload the configuration files of JakAdmin.
           
    Level 5 Admin Commands:
            * /setlevel                        -        Promotes/demotes a player to a specific admin level.
            * /settemplevel                        -        Temporarily promotes/demotes a player to a specific admin level.
            * /fakechat                        -        Sends out a fake chat under a player's name.
            * /fakecmd                        -        Execute a command using a player.
            * /removeacc                        -        Remove a player account.
            * /makemegodadmin                -        Instantly promotes yourself to level 5 admin (only usable by RCONs)
            * /createaccount                -        Create a player account.
            * /setaccount                        -        Change a player's account statistic.
            * /rcons                        -        Lists down all players that is currently logged in to RCON.


Admin Panel

Double click a player's name to pop the admin-panel dialog, this serves a quick process/way to execute an action to a player. Player's can also use dialog to report a player.

config.ini (/jsettings)

config.ini that can be found inside the JakAdmin folder - You can modify those values in game.
  • Code:

    RegisterOptional                -        Makes the registration optional (0 =  Disable, 1 = Enable)       
    SaveLog                        -        Save log files over the Log Folder inside JakAdmin folder (0 = Disable, 1 = Enable)
    LoginWarn                        -        Amount of warnings before player gets kicked for having too many attempts to login to their account.
    SecureWarn                        -        Amount of warnings before player gets kicked for having too many attempts on answering security question.
    AutoLogin                        -        Automatically logs in players when they connect. (0 = Disable, 1 = Enable)
    ReadCmds                        -        Read Command Mode (1 = Spectate Mode, you can only read used commands from the player that you spectate, 2 = Normal Mode, you can read everyones used commands)
    ReadCmd                                -        Read player's used commands (0 = Disable, 1 = Enable)
    MaxPing                                -        The maximum ping that is allowed in the server (0 = Disable)
    AntiSwear                        -        Censor words that is in the ForbiddenWords.cfg (0 = Disable, 1 = Enable)
    AntiName                        -        Kicks players that uses the name that is listed in ForbiddenNames.cfg (0 = Disable, 1 = Enable)
    AntiAd                                -        Alerts administrators when someone types an IP address. (0 = Disable, 1 = Enable)
    AntiSpam                        -        Temporarily blocks player from executing commands/talking in the chat to prevent spam. (0 = Disable, 1 = Enabel)
    TabTime                        -        The maximum amount of time when player is tabbed, exceeding this amount of time will kick the player. (0 = Disable)
    AFKTime                        -        The maximum amount of time when player is idle/AFK, exceeding this amount of time will kick the player. (0 = Disable)
    ReadPMs                        -        Read player's private messages (0 = Disable, 1 = Enable)
    LockChat                        -        Opens/Locks the chat in general (0 = Open, 1 = Close)
    JoinMsg                        -        Sends out a message to everyone that a player has joined/left the server. (0 = Disable, 1 = Enable)
    AdminRank1                        -        Admin Rank #1 name
    AdminRank2                        -        Admin Rank #2 name
    AdminRank3                        -        Admin Rank #3 name
    AdminRank4                        -        Admin Rank #4 name
    AdminRank5                        -        Admin Rank #5 name


Script-Configuration

Configuration that you can edit in the script, Default Values:
  • Code:

    // Starting score for registered player.
    #define                STARTING_SCORE                  1
    // Starting cash for registered player.
    #define                STARTING_CASH                  10000
    // Max warnings for attempting to logged in RCON.
    #define                MAX_RCON_WARNINGS              3
    // Time Limit before you can send another message
    #define                SPAM_TIMELIMIT                        2          // In seconds
    // Maximum Notes an admin can drop to a specific player.
    #define                MAX_NOTES                      3
    // Maximum Deployable Labels
    #define                MAX_DEPLOYABLE_LABEL            30
    // Enables DIALOG in register/login/stats/everything, remove or comment otherwise to make it client-server message.
    #define                        USE_DIALOG
    // Enables the 2nd RCON protection, remove or comment otherwise to disable.
    #define                USE_RCON_PROTECTION
    // Password for the 2nd RCON
    #define                RCON_PASSWORD                      "changeme"
    // Enables the AKA system, remove or comment otherwise to disable.
    #define                        USE_AKA
    // Enables the command printing/logging on the server console, remove or comment to disable.
    #define                        PRINT_CMD


Making Yourself A Level 5 Admin
  1. Connect to the server, register & login.
  2. Login to RCON. (/rcon login [rcon_password])
  3. If the SAFE RCON PROTECTION is enabled, the default password for it is "changeme", type it over the popped-up dialog.
  4. Type /makemegodadmin.

Installing
  1. Download the script
  2. Copy and paste the folders to their respective file destination (Choose the "COPY AND REPLACE" option)
  3. Open up the server.cfg and edit the following:
    • Add jadmin next to the filterscript
    • Add these next to plugins "streamer sscanf whirlpool" (without the quotes)
    • If you are using Linux, put a .so at the end of each plugin's name when putting them on server.cfg.
  4. Final Result of server.cfg (filterscript & plugins)

    For Windows
    Code:

    filterscripts jadmin
    plugins streamer sscanf whirlpool

    For Linux

    Code:

    filterscripts jadmin
    plugins streamer.so sscanf.so whirlpool.so


Script Compability

If you are planning to use JakAdmin4 as your admin system, you can link your script to JakAdmin4 without porting the whole admin system to your gamemode. Just simply use the jadmin3.inc, These are the following functions that you can use on jadmin3.inc

Code:

native SetPlayerGameTime(playerid, hour, minute, second);
native GetPlayerGameTime(playerid, &hour, &minute, &second);
native SetPlayerChocolate(playerid, amount);
native GetPlayerChocolate(playerid);
native CheckLogin(playerid);
native SetPlayerLogged(playerid, toggle);
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);
native IsPlayerIdle(playerid);
native IsPlayerTabbed(playerid);

You can also use/detect if a player has sent a Private Message to another player using

Code:

public OnPlayerPrivMessage(playerid, id, text[])
How do I use jadmin3.inc?
  • How to create an admin command?
    • You can create an admin command by using the CheckAdmin Function, below illustrate on how to use it.
      PHP Code:

      CMD:mycommand(playeridparams[])
      {
          
      LoginCheck(playerid); // Check if a player is logged in.
          
      LevelCheck(playerid1); //Level 1 admin, Change 1 to anything you want (1 to 5).
          
          //Place your script code here.
          
      return 1;



Special Thanks To
  • Jake Hero - coding/scripting JakAdmin4
  • Zeex - zcmd
  • Y_Less - sscanf/YSI/whirlpool
  • Lordzy - Safe RCON Protection
  • denNorske - Providing a temporary server-host
  • Stinged - RCON Command technique
  • Emmet_ - easyDialog

BETA TESTERS FROM THE PAST & NOW, THANK YOU!

Milica, NotDunn, Kizuna, YaBoiJeff (Sean), Pavintharan, denNorske, Uberanwar
Ranveer, Harvey, Ultraz Samp_India, Ashirwad, Sonic, Adham, MaxFranky

Changelog

Changes since 3.5 of JakAdmin
  • version 4.0
    • Script Optimization.
    • Updated jadmin.inc (renamed from jadmin3)
    • Ban System tweaked:
      • Offline Banning now bans the IP.
      • Added a Temporary Ban System (no effects on prev-ban database)
      • Added a command to check if a player is banned. (/checkban)
      • Added a command to ban/unban an IP. (/(un)banip)
    • Security Checks on User Account.
      • Prints out a log at the server console whenever a player fails to login/answer the security question.
      • Lists last 10 IPs who tries to breach into the user's account. (/checkbreach)
    • Level 5 admins:
      • Ability to create a user account without logging out. (/createaccount)
      • Ability to remove a user account. (/removeaccount)
      • Full control on offline user's account (/setaccount)
    • Server will now automatically kick tabbed out/idle players (/jsettings to disable)
      • Ability to list down tabbed players. (/tabbed)
      • Ability to list down AFK players. (/afk)
      • Updated jadmin, adding idle/tabbed checks (IsPlayerTabbed & IsPlayerIdle)
    • Removal of the Note System.
    • Removal of the Mega Jump System.
    • Removal of a few commands that is prone to being abused.
    • Added LastOn over the user's data.
      • Added /laston command.
    • Re-added back the Lock Chat system. (/lockchat)
    • Higher Admins are now immune from being included on Over-All commands such as /setallskin etc.
    • Added /rcons for Level 5+
    • Re-added back /hideme.
    • Added label for Admins.
    • Added Join/Leave messages (/jsettings)
    • /god is now a Level 1 admin command.
    • Switched from dini to y_ini.
    • Changed the color embedding theme from Orange to Green.
    • You can now permanently mute players without setting a time.
    • You can check the last 5 people who injured the player.
    • Added the /richlist command.
    • Brought back the private message system.
    • Added an option to make /stats into dialog or server-client message. (See USE_DIALOG)
    • Converted the whole dialog script to Emmet's easyDialog.
    • Added the Also-Known-As system. (See USE_AKA)
    • Tweaked the Anti-Spam (+ now includes Command Spams)
    • Admin's Status is now displayed on /stats.
    • Fixed Advanced/Reverse Spectating.
    • Added a command to check an offline statistics (/ostats)
    • Client-Messages & Color re-tweaked (+ including grammar fixes).
    • You can now cage players as a punishment! (Level 2+ admins)
    • Fixed on /register. (crashes the server if the oldname PVar is null)
    • Enables to print out all the players typed command on the server console (See PRINT_CMD)
    • You are now required to use commas when placing coordinates on /gotoco.
    • Control over the RCON Panel (promoting/demoting someone without going IG, etc.)
    • Removal of the High-Ping Warning, player gets instantly kicked now for having a high ping.
    • Removal of the VIP system, making JakAdmin a standalone script once again.

Download

I am accepting mirror link just incase if the official link expires!

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>