03.06.2017, 13:41
PHP код:
COMMAND:factions(playerid, params[])
{
new iCount;
FactionLoop(f)
{
if(FactionInfo[f][fActive] != true) continue;
iCount++;
}
if(iCount == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "There are currently no active factions in the server!");
FactionLoop(f)
{
if(FactionInfo[f][fActive] != true) continue;
SendClientMSG(playerid, FactionInfo[f][fColour], " - %s | Online: %d | Members: %d / %d", FactionInfo[f][fName], GetOnlineMembers(f), GetTotalMembers(f), FactionInfo[f][fMaxMemberSlots]);
printf("%s",FactionInfo[f][fName]);
}
return 1;
}