Author Topic: [Update 23-09] GUI Admin Panel  (Read 8705 times)

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 254
  • Karma: +20/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
[Update 23-09] GUI Admin Panel
« on: October 31, 2013, 10:24:55 pm »
LATEST UPDATE: 23.09.2015 [STABLE]





A GUI admin panel which includes a spectator mode. The main goal of script was adding basic administrator features, but it expanded and now includes many intricate options. Since 1.2 release, the project is in a STABLE state.

Main features
- Time and weather management
- Player management
- Vehicles management
- Game and server settings management
and more (expanded list)

Instalation
1. Unzip `adminpanel.zip` to your `Scripts` directory.
2. Open `content.xml` and add `<script folder="adminpanel"/>` on the bottom.
3. In your accounts script add `SetAdminLevel( pPlayer, 1 )` to grant admin access or use /aplogin <password> command to login.
4. Panel is ready! To open press 'P' button :)

To enable/disable autoloader, open config.ini and change/add line below:
Code: [Select]
[panel_config]
UseAutoloader = true

Download
Admin Panel 1.3.3 (latest)
Admin Panel 1.3.2
Admin Panel 1.3.1
Admin Panel 1.3
Admin Panel 1.2 R3
Admin Panel 1.2 R2
Admin Panel 1.2
Admin Panel 1.1 R2
Admin Panel 1.1
Admin Panel 1.0

Github:
https://github.com/TheStoku?tab=activity
https://github.com/TheStoku/AdminPanel

If you liked this project, you can feed me :)
Quote
PayPal: thestoku@o2.pl
« Last Edit: September 05, 2016, 08:50:26 pm by Stoku »

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 254
  • Karma: +20/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
Re: [Script Release] GUI Admin Panel
« Reply #1 on: October 31, 2013, 10:25:19 pm »
Known issues
You tell me :)

Features
Time & Weather:
- time lock
- weather lock
- setting time
- setting weather

Player Manager:
(includes spectator)
- ban player
- kick player
- heal player
- freeze/unfreeze player
- heal player
 8 console modes (change mode with END key and accept with RETURN):
- find player
- private message
- set player health
- set player armor
- set player skin
- ban IP
- unban IP
- set admin level

Vehicle Manager:
- explode
- fix
- respawn
- remove
- teleport
- primary and secondary color palette
- locked true/false
- lights on/off
- engine on/off
- a color picker!

Server Settings:
- server name
- map name
- gamemode name
- max players
- password
- port

Game Settings:
- set game speed
- set game gravity
- toggle flying cars cheat
- toggle handling cheat
- toggle friendly fire
- toggle SSV bridge lock

Additional features:
- autoloader - autoloads scripts from `/autoload/` directory
- definable admin access level in `client.nut` file (by default level 1 has access to everything)
- easy sound and color scheming   2 color and sound schemes (check readme.txt)
- definable admin actions output in `server.nut` file
and more :)

Changelog
Version 1.3.3 (23.03.2015):
- [GENERAL] fix for setting admin level from panel

Version 1.3.2 (05.10.2014):
- [GENERAL] added fix of security flaw

Version 1.3.1 (29.09.2014):
- [CLIENT] reduced script load time from ~1350ms to <5ms.
- [CLIENT] tweaked spectate camera (from the back of spectated player)
- [GUI] prevent pressing buttons on the background windows (vehicle manager/color palette)
- [SERVER] added LoginCommand, Password, DefaultLevel, MaxAttempts, LUIDAutoLogin to config.ini (the config will be updated automatically after first launch)
- [GENERAL] redone some stuff, added minor fixes

Version 1.3 (02.09.2014):
- [SERVER] added admin login command (/aplogin by default)
- [SERVER] added autologin via LUID
- [SERVER] new variables in server.nut: (str)LOGIN_COMMAND, (str)ADMIN_PASSWORD, (int)ADMIN_LEVEL, (int)ADMIN_LOGIN_ATTEMPTS, (bool)LUID_AUTOLOGIN

Version 1.2 R3 (08.08.2014):
- [GUI] fix labels transparency in Liberty Unleashed 0.1.0.16
- [GUI] added GUI_LABEL_ALPHA for theming
- [GUI] added ban type selection window (Liberty Unleashed 0.1.0.16 )
- [CLIENT] small code cleanups

Version 1.2 R2 (04.08.2014):
- [SERVER/CLIENT] add support for Liberty Unleashed 0.1.0.15
- [SERVER] use autoloader by default
- [SERVER] Autoloader: added "off_" prefix detection in script name to ignore scripts
- [SERVER] Autoloader: added scripts counter

Version 1.2 (29.05.2014):
- [GUI] added "Vehicle Manager" tab
- [GUI] added color picker for vehicles
- [GUI] added teleport feature for players/vehicles
- [GUI] added "Set admin level" mode
- [GUI] added "All" checkbox to specify if you want to work on one player or all players (teleport all, kill all etc.)
- [GUI] added shadows for text which makes it more readable and nicer
- [GUI] some code improvements
- [CLIENT] fixed delayed settings load in "Time & Weather", "Server Settings" and "Game Settings" tab
- [CLIENT] fixed spawnscreen bug
- [CLIENT] fixed spectator mode
- [SERVER] added script autoload feature (thanks to Thijn). Just paste any .nut file into "adminpanel/autoload/" dir
- [SERVER] added "autoload/consolechat.nut", an example script and autoload feature
- [SERVER] added some new ADMIN_ECHO modes
- [SERVER] added server console commands, try 'help', 'cmd', or 'commands'
- [SERVER/CLIENT] added many checks, security fixes and did some code cleanups

Version 1.1 R2 (02.11.2013):
- fixed "P" bind in "Server Settings" tab
- streched time (hours and minutes) input boxes

Version 1.1 (01.11.2013):
- added "Server Settings" tab
- added  /- buttons to control gravity and game speed
- added "Ban" player button
- added IP in "Player Manager"
- added "Ban IP" console mode
- added "Unban IP" console mode
- added some server side checks to prevent errors
- fixed freezed camera issue in panel main menu
- fixed "P" bind issues in "Player Manager" (disabled bind for mode 1 and 2)
- fixed "Find player" mode bug when "Free slot" was selected

Version 1.0 (31.10.2013):
Initial release
« Last Edit: September 23, 2015, 03:04:36 pm by Stoku »

NC

  • Full Member
  • ***
  • Posts: 101
  • Karma: +2/-3
  • cipa
    • View Profile
Re: [Script Release] GUI Admin Panel
« Reply #2 on: October 31, 2013, 10:50:49 pm »
Looks fine. Looking forwards new versions, hoping you'll add +/- buttons for speed and gravity instead of text boxes.

Website online:
My YT channel: http://www.youtube.com/user/1234sdg131

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 254
  • Karma: +20/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
Re: [Script Release] GUI Admin Panel
« Reply #3 on: November 01, 2013, 01:29:19 am »
Thanks for your feedback NC. I've just finished adding these buttons, the gravity has additional "++" and "--" for faster changing (+0.1) instead of normal "+"/"-" which is +0.001.

I've also fixed issue when camera stops moving in main menu and did some minor tweaks in spectating camera view. Ohh and hopefully fixed "P" bind in Player Manager.

Update: there is a major bug with searching players when "Free slot" is selected, fixed in feature version. solved in 1.1

The new version will be published soon, I just want to be sure there are no bugs left :)
« Last Edit: November 01, 2013, 06:34:54 pm by Stoku »

Mido_Pop

  • Full Member
  • ***
  • Posts: 168
  • Karma: +6/-20
  • The_Pops ( War )
    • View Profile
Re: [Script Release] GUI Admin Panel
« Reply #4 on: November 01, 2013, 09:40:49 am »
Nice Work  ;) +1



Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-15
    • View Profile
Re: [Script Release] GUI Admin Panel
« Reply #5 on: November 01, 2013, 12:29:48 pm »
Looks very nice from the screenshots, haven't had a chance to try it out ingame.

Fire_Head

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-1
    • View Profile
Re: [Script Release] GUI Admin Panel
« Reply #6 on: November 01, 2013, 02:51:23 pm »
Gud Job :D

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 254
  • Karma: +20/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
Re: [Script Release] GUI Admin Panel
« Reply #7 on: November 01, 2013, 04:33:08 pm »
Thank you guys, just finished and uploaded a new version with bugfixes and many new features.

Version 1.1 (01.11.2013):
- added "Server Settings" tab
- added +/- buttons to control gravity and game speed
- added "Ban" player button
- added IP in "Player Manager"
- added "Ban IP" console mode
- added "Unban IP" console mode
- added some server side checks to prevent errors
- fixed freezed camera issue in panel main menu
- fixed "P" bind issues in "Player Manager" (disabled bind for mode 1 and 2)
- fixed "Find player" mode bug when "Free slot" was selected

New "Server Settings" tab:


You can still request new features for upcoming version, the point of next update is making panel more advanced.
« Last Edit: November 01, 2013, 06:33:48 pm by Stoku »

NC

  • Full Member
  • ***
  • Posts: 101
  • Karma: +2/-3
  • cipa
    • View Profile
Re: [Script Release] GUI Admin Panel
« Reply #8 on: November 01, 2013, 09:52:28 pm »
Are these ">" in the text input boxes necessary?

Website online:
My YT channel: http://www.youtube.com/user/1234sdg131

sasha19323

  • Jr. Member
  • **
  • Posts: 99
  • Karma: +25/-24
    • View Profile
Re: [Script Release] GUI Admin Panel
« Reply #9 on: November 02, 2013, 10:20:44 am »
Are these ">" in the text input boxes necessary?
It includes by LU and you can't remove it.

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 254
  • Karma: +20/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
Re: [Script Release] GUI Admin Panel
« Reply #10 on: November 02, 2013, 11:44:27 am »
Are these ">" in the text input boxes necessary?
It includes by LU and you can't remove it.
That's right.

Bugs Detected



  • When i write on "Server Settings" the letter P, the panel closes.
  • Set Time have errors, like cannot edit the hour when more 2+ numbers.


Thank you GTU, just released 1.1 R2 which solves these issues.

Version 1.1 R2 (02.11.2013):
- fixed "P" bind in "Server Settings" tab
- streched time (hours and minutes) input boxes

PS. The upcoming 1.2 version will contain many new and useful features but development will take a while. Anyways, it'll be worth the wait :)
« Last Edit: November 02, 2013, 11:47:56 am by Stoku »

Gabox0242

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Help!
« Reply #11 on: April 24, 2014, 05:20:42 pm »
I do not get to put SetAdminLevel (pplayer, 1) in the script of my accounts but as I put the script of my accounts is so LUS.sqlite not like putting it there is no other easier way?

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 254
  • Karma: +20/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
Re: [Script Release] GUI Admin Panel
« Reply #12 on: April 24, 2014, 11:01:18 pm »
Please paste your script (account load part) on pastebin or something, so we can help you. Also, you should probably change "pPlayer" to name which you use in your script.

Ps. Here's waiting an update which only needs to be tested before the release :)
« Last Edit: April 24, 2014, 11:07:39 pm by Stoku »

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 254
  • Karma: +20/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
Re: [Script Release] GUI Admin Panel
« Reply #13 on: May 29, 2014, 02:57:29 pm »
*bump*

I just created a github repo, so you can watch any changes in my sources, download releases etc.

Links:
AdminPanel: https://github.com/TheStoku/AdminPanel
Nightlies: https://github.com/TheStoku/AdminPanel/tree/unreleased-NIGHTLY
My activity: https://github.com/TheStoku?tab=activity

About the upcoming version... I've made a test and it needs some fixes before the release, but hopefully will be finished in a few days :)

/edit: releasing!



A color picker!


Version 1.2 (29.05.2014):
- [GUI] added "Vehicle Manager" tab
- [GUI] added color picker for vehicles
- [GUI] added teleport feature for players/vehicles
- [GUI] added "Set admin level" mode
- [GUI] added "All" checkbox to specify if you want to work on one player or all players (teleport all, kill all etc.)
- [GUI] added shadows for text which makes it more readable and nicer
- [GUI] some code improvements
- [CLIENT] fixed delayed settings load in "Time & Weather", "Server Settings" and "Game Settings" tab
- [CLIENT] fixed spawnscreen bug
- [CLIENT] fixed spectator mode
- [SERVER] added script autoload feature (thanks to Thijn). Just paste any .nut file into "adminpanel/autoload/" dir
- [SERVER] added "autoload/consolechat.nut", an example script and autoload feature
- [SERVER] added some new ADMIN_ECHO modes
- [SERVER] added server console commands, try 'help', 'cmd', or 'commands'
- [SERVER/CLIENT] added many checks, security fixes and did some code cleanups

Download Admin Panel 1.2

To enable/disable autoloader, open config.ini and edit/add line below:
Code: [Select]
[panel_config]
UseAutoloader = true
« Last Edit: June 02, 2014, 02:07:56 pm by Stoku »

NC

  • Full Member
  • ***
  • Posts: 101
  • Karma: +2/-3
  • cipa
    • View Profile
Re: [Update 29-05] GUI Admin Panel
« Reply #14 on: June 01, 2014, 08:15:16 pm »
The color picker looks pretty nasty :>.

Website online:
My YT channel: http://www.youtube.com/user/1234sdg131

 

© Liberty Unleashed Team.