[Help] Max 1
#6

pawn Код:
new FactionHasOwner;
for(new i; i <= MAX_PLAYERS; i++) {
    if(IsPlayerConnected(i)) {
        if(PlayerInfo[i][LeaderOfFamily]) {
            FactionHasOwner = 1;
        }
    }
}
if(FactionHasOwner) return SendClientMessage(playerid, COLOR_RED, "ERROR: This faction already has a leader.");
Use that in the command which gives the leader.
Reply


Messages In This Thread
[Help] Max 1 - by -Xan- - 30.07.2010, 18:20
Re: [Help] Max 1 - by -Xan- - 31.07.2010, 08:47
Re: [Help] Max 1 - by -Xan- - 31.07.2010, 20:27
Re: [Help] Max 1 - by Hijolion - 31.07.2010, 20:30
Re: [Help] Max 1 - by -Xan- - 31.07.2010, 20:34
Re: [Help] Max 1 - by Conroy - 31.07.2010, 21:15
Re: [Help] Max 1 - by -Xan- - 01.08.2010, 11:40
Re: [Help] Max 1 - by Retardedwolf - 01.08.2010, 11:46
Re: [Help] Max 1 - by -Xan- - 01.08.2010, 11:53
Re: [Help] Max 1 - by Retardedwolf - 01.08.2010, 11:55

Forum Jump:


Users browsing this thread: 4 Guest(s)