Hi,
I'm currently moving from SA-MP to MTA. So I'm new to MTA.
In SA-MP I had a MySQL database for the player accounts, permissions, bought vehicles, etc...
And I want to do the same in MTA. I already have a table for the player accounts and a working Login/Register system.
Now the next step: The permissions. I want to give permissions like "Admin" (General stuff like restarting the server), "Moderator" (kick, ban, ...) or "Teleport" (Teleport to other players, ...) to some players. I know I can do that using the acl.xml
But I want to store it in the database.
My first thinking was adding a check in each command a player can execute which checks the permissions. Is that the right way or is there a better solution?
The next thinking was: I also have to check the permissions if a player is able to use a client side script to do some things like teleporting using a map. If the player selects the target on the map, the permission should be checked on the server again (Because every event called by the client script is bad ).
I hope someone knows what I mean.