matias000 Posted July 16, 2018 Share Posted July 16, 2018 I want to create a system where I can buy a company and hire other players, just like the samp could someone help me? Link to comment
Galactix Posted July 16, 2018 Share Posted July 16, 2018 You would simply have to script firstly the jobs that you would want in your server (basic scripting), to then script every group related to each separate job (using createTeam or setAccountData) and after you could make the possibility, for example, do /duty when you stand in a marker in front of the hospital as someone belonging to the doctor job group (for that you would just use getPlayerTeam or getAccountData depending on what you choose to use) and then you could finally grant permissions to each and every group like police officers can use police cars and armory or stuff like that (you could do that using just the same as in the previous step). You could also achieve all this by using ACL rank but it may be a little inappropriate to use. My personal preference would be to go with setAccountData and getAccountData when you need to retrieve the permissions allowed to a player by his job group. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now