Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
August 24, 2019, 12:20:39 am

Author Topic: Admin Panel (Commands + GUI)  (Read 24840 times)

UniOnDennis

  • Donator
  • Newbie
  • *****
  • Posts: 15
    • View Profile
Admin Panel (Commands + GUI)
« on: December 19, 2013, 01:02:19 am »
Hello folks,

For the people that don't like using admin commands (like me), I'm working on a brand new admin resource that comes with a nice GUI as well as commands.

Admin Panel Features:

- Searching for a player in the list
- Kicking players (with reason)
- Muting/unmuting players (with reason)
- Killing players (with reason)
- Warping to a player
- Warping a player to another player
- Setting the health of a player
- Setting money of a player
- Give car
- Give weapon
- Send message to player
- Give/take admin rights
- A ban list where you can remove/edit bans
- Multiple admin ranks where each rank has its own rights (moderator, admin, owner)

Features I'll work on when the basic stuff is done:

- Muting players for a specific time
- Banning players for a specific time

Admin Commands:

/kick [player] [reason*]
/mute [player] [reason*]
/unmute [player]
/ban [player] [reason*]
/ban [steamid] [reason*]
/unban [steamid]
/kill [player] [reason*]
/warp [player]
/warpto [player] ([warp to player] if left empty player warps to you)
/giveveh [player] [vehicleid]
/givewep [player] [wepid]
/removeveh [player]
/removevehs (removes all vehicles)
/togglechat (enables or disables the chat for all players)
/givemoney [player] [amount]
/takemoney [player] [amount]
/sethealth [player] [amount] (1/100)
/giveadmin [player]
/takeadmin [player]
/sendmsg [player] [message]
/note [message] (global message]

* = Not required

The admin panel uses sqlite to store the steamid's from the admin's, mutes and ban times.





If you have any suggestions please let me know!
« Last Edit: January 01, 2014, 07:33:06 pm by UniOnDennis »

fahrstuhl1

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #1 on: December 19, 2013, 01:14:11 am »
sounds awesome! i don't know if something like this is possible but it would be a good feature to search for players, i think to find the right player on big servers (>300) could take some time. anyway i am looking forward to try your Admin Panel!

UniOnDennis

  • Donator
  • Newbie
  • *****
  • Posts: 15
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #2 on: December 19, 2013, 01:15:24 am »
sounds awesome! i don't know if something like this is possible but it would be a good feature to search for players, i think to find the right player on big servers (>300) could take some time. anyway i am looking forward to try your Admin Panel!

Aw, that's possible yeah! I'll start on that right away. :D
EDIT: Done.
« Last Edit: December 19, 2013, 01:28:31 am by UniOnDennis »

Chemich

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #3 on: December 19, 2013, 02:05:14 am »
Download link would be nice. c:

My suggestions:

Player Commands:
/repair |  to fix vehicle (with cost)
/id | to show your own steam id (to no one else)
/online | player list
/killcar | To remove current car (with cost)
/commands | Displays all commands you have access to (admin commands obviously only if you have admin)


Admin Commands:
/kill player | To kill player instantly
/phere player | To teleport player to you instantly
/vehremove | To remove all vehicles
/summon player | Teleports "player" to you

Only thing to better this script would be working in an "Admin Groups" script, to have an Owner, Admins, Moderators, Donators, and then for everyone else "Members"... etc...

Other than that a "Noclip" command for admins / owners would be friggin' unbelievable. Would be nice to not get RDM'd once in awhile.

Also to make teleports acceptable, as in the other player HAS to confirm by using something like /tpaccept, except for admins who can grab any player as they please.

And then maybe a /sethome option so instead of spawning somewhere in the air, any player can instantly just warp to their home instead.

If you do all of this I'll use your script instead of Cain's. :P (not trying to create competition, but these are things I'd REALLY love for my own server.)

llcoolguy117

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #4 on: December 19, 2013, 02:10:19 am »
WE WANT THE DOWN LODE LINK

Chriswak

  • Newbie
  • *
  • Posts: 29
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #5 on: December 19, 2013, 02:32:40 am »
Very eager to try this one out. Thanks Dennis!

llcoolguy117

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #6 on: December 19, 2013, 02:49:57 am »
i need this now

Source

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #7 on: December 19, 2013, 03:12:01 am »
Looking forward to this one. Making a GUI looks really intimidating, and without any tutorials, it could be useful to have this script as a reference. Good luck.

TJGMan

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #8 on: December 19, 2013, 12:35:48 pm »
That GUI really does look nice, very good work there!

Proking

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #9 on: December 19, 2013, 02:15:31 pm »
Waiting for release  ;D

Great work!!

UniOnDennis

  • Donator
  • Newbie
  • *****
  • Posts: 15
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #10 on: December 19, 2013, 02:53:51 pm »
@Chemich

Thanks for your suggestions.
I won't be adding any non-admin commands as this resource is supposed to be an admin panel.
Commands for players (so non-admin) should not be included in an admin panel resource as that makes everything messy and badly organized.

I've added the repair car and destroy car options to the admin panel and added those commands you suggested to my to-do list.

The admin rank system will be added eventually but I'll finish the basic version first.

EDIT:
I updated the GUI and added a TabControl to it for future features.
Also added 2 button to repair and destroy vehicles.
« Last Edit: December 19, 2013, 04:09:22 pm by UniOnDennis »

bobsayshilol

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #11 on: December 19, 2013, 04:11:16 pm »
Ah you beat me to posting a GUI admin menu.

We already have one, but yours looks a lot neater, and I'm looking forward to using it.

Chemich

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #12 on: December 19, 2013, 04:13:16 pm »
@Chemich

Thanks for your suggestions.
I won't be adding any non-admin commands as this resource is supposed to be an admin panel.
Commands for players (so non-admin) should not be included in an admin panel resource as that makes everything messy and badly organized.

I've added the repair car and destroy car options to the admin panel and added those commands you suggested to my to-do list.

The admin rank system will be added eventually but I'll finish the basic version first.

EDIT:
I updated the GUI and added a TabControl to it for future features.
Also added 2 button to repair and destroy vehicles.

Are you only releasing this when it's finished? Kind of wanted to beta test this for you.

KungfuBeer

  • Donator
  • Jr. Member
  • *****
  • Posts: 67
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #13 on: December 19, 2013, 04:29:27 pm »
Very nice! 

UniOnDennis

  • Donator
  • Newbie
  • *****
  • Posts: 15
    • View Profile
Re: Admin Panel (Commands + GUI)
« Reply #14 on: December 19, 2013, 04:30:18 pm »
I'll release it when most of the stuff is done and working properly. You don't really want a failing admin panel in your live server so releasing it now would be a bad idea. I'll keep working on it this weekend so I hope to release the first version Saturday.

I've added a list of the commands, suggestions are still welcome.
« Last Edit: December 19, 2013, 06:11:37 pm by UniOnDennis »