Factions
#10

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.
Reply


Messages In This Thread
Factions - by GangsTa_ - 20.08.2010, 05:38
Re: Factions - by Darklom - 20.08.2010, 05:40
Re: Factions - by GangsTa_ - 20.08.2010, 05:59
Re: Factions - by Darklom - 20.08.2010, 06:06
Re: Factions - by GangsTa_ - 20.08.2010, 06:23
Re: Factions - by GangsTa_ - 20.08.2010, 08:59
Re: Factions - by GangsTa_ - 20.08.2010, 11:25
Re: Factions - by Cameltoe - 20.08.2010, 11:27
Re: Factions - by playbox12 - 20.08.2010, 11:50
Re: Factions - by Voldemort - 21.08.2010, 18:50

Forum Jump:


Users browsing this thread: 1 Guest(s)