Help with faction system
#2

Well, the makeleader command is simple variables. if you have an enum for playerinfo, you could do something like.

pawn Код:
enum pInfo
{
pLeader
};
new PlayerInfo[MAX_PLAYERS][pInfo];
And then for the makeleader, do:
pawn Код:
PlayerInfo[playerid][pLeader] = 1; // Faction Name 1, you can use 2 for second faction, and so on.
So therefor, you can make it if pLeader for a player = 1, then he's leader of, say, LSPD. If it = 2, then he's leader of say, FBI. You get it?
Reply


Messages In This Thread
Help with faction system - by Michael_Cuellar - 12.04.2013, 00:15
Re: Help with faction system - by zDivine - 12.04.2013, 00:22
Re: Help with faction system - by Michael_Cuellar - 12.04.2013, 01:22
Re: Help with faction system - by Scrillex - 12.04.2013, 01:25

Forum Jump:


Users browsing this thread: 1 Guest(s)