Jump to content

Recommended Posts

Posted
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?

Posted

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

4xht1ge_d.webp?maxwidth=760&fidelity=gra

 

restart faction_rank when player leaves faction

this is an example of a table

  • 3 months later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...