Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- playergroup PlayerGroupActiveUsers ()
- {
- playergroup g = PlayerGroupActive();
- int count = PlayerGroupCount(g);
- int player;
- int i = 1;
- while (i <= count) {
- player = PlayerGroupPlayer(g,i);
- if (IsActiveUser(player))
- {
- PlayerGroupRemove(g,player);
- count-=1;
- }
- else
- {
- i+=1;
- }
- }
- return g;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement