22.09.2016, 11:56
Hi, I have a few questions regarding creating a custom admin system.
First of all, how would I be able to create a rcon command which will be used to promote and demote admins?
And my other question is if I need to use a specific thing or do I just assign their admin rank in the mySQL database and then in game a variable will store whether the player is an admin or not and if he is it will also list his admin rank? Basically all of that system is just a single boolean that says if player X is an admin or not, and whenever player X tries to use a restricted command, the server will check this boolean variable and if it returns true, it will check for his rank, if rank is higher or equals to the required rank, command will execute, if rank is lower, command will return 1.
Is that how it works or should I do something else?
First of all, how would I be able to create a rcon command which will be used to promote and demote admins?
And my other question is if I need to use a specific thing or do I just assign their admin rank in the mySQL database and then in game a variable will store whether the player is an admin or not and if he is it will also list his admin rank? Basically all of that system is just a single boolean that says if player X is an admin or not, and whenever player X tries to use a restricted command, the server will check this boolean variable and if it returns true, it will check for his rank, if rank is higher or equals to the required rank, command will execute, if rank is lower, command will return 1.
Is that how it works or should I do something else?