25.03.2018, 11:50
Код:
stock countFactionMembers(factionid) { new count; foreach(Player, i) { if(pl[i][pMember] == factionid || pl[i][pLeader] == factionid) { count++; } } return count; } for(new i = 0; i < MAX_PLAYERS; i++) { if(pl[i][pMember]==number||pl[i][pLeader]==number) { GivePlayerMoney(i, money/countFactionMembers(number)); } }