12.04.2013, 00:22
Well, the makeleader command is simple variables. if you have an enum for playerinfo, you could do something like.
And then for the makeleader, do:
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?
pawn Код:
enum pInfo
{
pLeader
};
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
PlayerInfo[playerid][pLeader] = 1; // Faction Name 1, you can use 2 for second faction, and so on.