Quote:
Originally Posted by GangsTa[MD]
Yeah I just started MY OWN RP server not GF edit.
|
++
To make new faction , I suggest what to do:
1.
#define SHERIFF 0
#define MEDIC 1
#define MAYOR 2
#define NEWS 3
enum pinfos
{
Faction,
}
new Pinfo[MAX_PLAYERS][pinfos];
When admin do a cmd, like /makeleader or /setfaction.
player Faction sets to MEDIC etc,
so later in script you dont have to worry about to remember faction IDs
Example:
if(Pinfo[playerid][Faction] == SHERIFF)
{
Arrest
}
If you have seen GF faction system , i suggest you to not make Member/Leader, but define Leader as rank 7, so you dont need double check if Leader == Sheriff and if Member Sheriff
I hope you understand what I wriote, if you have any questions, go ahead.