Advertisement
JademusSreg

SetPlayerGroupAlliance

Apr 4th, 2011
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.46 KB | None | 0 0
  1. void SetPlayerGroupAlliance (playergroup allyGroup, int allyType) {
  2.     int index1 = 1;
  3.     int index2;
  4.     while (index1 <= PlayerGroupCount(allyGroup)) {
  5.         index2 = 1;
  6.         while (index2 <= PlayerGroupCount(allyGroup)) {
  7.             if (index1 != index2) {
  8.                 PlayerSetAlliance(PlayerGroupPlayer(allyGroup,index1),allyType,PlayerGroupPlayer(allyGroup,index2),true);
  9.             }
  10.             index2+=1;
  11.         }
  12.         index1+=1;
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement