31.07.2010, 21:15
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.");