Jump to content

1 Screenshot

About This File

(Converted from GT-MP 31 MAY - Originally created 7 APR)

I decided to convert my old resource to provide examples for others as well as learn the new API of RageMP.

 

A simple approach to an admin system that makes use of JSON instead of a common SQL Database.

Keep in mind this is nothing but a simple admin system to inspire someone else or continue to work on. There's plenty of commands missing if you intend to fit it to your own gamemode. I will mention that the ban system could use more work. At the moment it's easy to bypass seeing it's only based on the socialClubName of a player. Anyway, it's just an attempt at messing around a bit with JSON. If you're going to create a larger system I'd advice doing it differently. To alter your admin level, first register ingame and open up your JSON file. In the file you'll see your admin level that can range from 1-5. 1 being Junior & 5 being defined as Mangement.

Command Description
/login [password] Used to login to your admin account and gain access to the commands.
/register [adminName] [password] Used to register an admin account. Currently there's no restrictions to prevent everyone from doing so.
/ahelp Will display all commands avaliable to admins.
/mute [target] Mutes the player and makes him unable to use the chat.
/unmute [target] Unmutes the player and allows him to use the chat again.
/spawnwep [wepName] [ammo] Creates a weapon and gives it to yourself with 9999 ammo unless specified otherwise.
/spawncar [vehicleName] [color1] [color2] Create a vehicle and places you in the driversseat. Uses default color 1 unless specified otherwise.
/setkevlar [target] [amount] Gives the target the desired amount of armor.
/sethealth [target] [amount] Gives the target the desired amount of health, unless the target is dead.
/goto [target] Teleports you to the target's position.
/gethere [target] Teleports the target to your position.
/kick [target] [reason] Simply kicks the player from server and display a message for everyone to see.
/ban [target] [reason] Kicks the player and creates a ban file with the specified reason.
  • Like 7
  • Sad 1

User Feedback

Recommended Comments

Xenox

Posted

no funktion old

Jonas im

Posted

how do i put that in the database

-Andreas

Posted

5 minutes ago, Jonas im said:

how do i put that in the database

Not sure which database you're referring to.

Jonas im

Posted

8 minutes ago, -Andreas said:

Not sure which database you're referring to.

Phpmyadmin

1 minute ago, Jonas im said:

Phpmyadmin

or what do you mean?

TrapeZ

Posted

Could you please make a youtube video on where to put this and how to set it up?

-Andreas

Posted

9 hours ago, TrapeZ said:

Could you please make a youtube video on where to put this and how to set it up?

It's a very old script, and I don't offer support for it. It's pretty much plug-and-play I'd say. Just dig around a bit and maybe you will figure it out.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...