Factions
#1

Im making a script called Millenium Roleplay and im wondering how do you make factions because i want to make these current factions:

DOC- Department of Corrections
LSPD- Los Santos Police Department
LSEMS - Los Santos Emergency Services
LSFD - Los Santos Fire Department
SAPD - San Andreas Police Department
LVPD - Las Venturas Police Department
LVMD - Las Venturas Medical Department
SANews - San Andreas News
RR - Rapid Recovery
S.W.A.T
Reply
#2

Dynamic? or static? if static then they are just defined variables.
Reply
#3

A faction is not like a function, 1.2.3. done.. Factions are imaginative things, bound together by a number, some commands that only work if your player has a saved variable that binds them to the specific number, and a skin (most of the times).

So, the only advise that I have for you at this moment, is the following:
  • Save the faction number for a player in the player's savedata
  • Load the data into a variable when the player logs in
  • Make commands that only work if the faction variable of the player is the same as the faction number
I know this may seem unclear, but this is, in short, what factions, shop items and owned cars are all about; Variables that are linked throughout the script.
Reply
#4

I've searched for a tutorial for you, here (it might seem unclear but hope you can understand something from that.)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)