SparkMyte Posted August 24, 2021 Author Posted August 24, 2021 21 hours ago, fl1k said: simple to your database add faction_id in players create a table called factions faction_id name etc etc etc on resourcestart fetch all factions into a list now on authentication fetch the player and u have his faction id, to get his faction do Factions[faction_id] but first check if Factions[faction_id] is null, if it is faction got deleted are you using C# or js I've managed to do these steps, up until the 'on resourcestart fetch all factions into a list', I was wondering how I'd do this, and how I actually made the faction names?
fl1k Posted August 25, 2021 Posted August 25, 2021 Now create your mysql database with for example your gamemode name (for example lsrp) connect to that database from your C# application and create a table called accounts and one called factions restart faction_rank when player leaves faction this is an example of a table
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