Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getNextClient(%client)
- {
- %count = clientgroup.getcount();
- for(%i=0;%i<%count;%i++)
- {
- %cur = clientgroup.getobject(%i); if(%turndownforwhat)
- {
- return %cur;
- }
- if(%cur == %client)
- {
- %turndownforwhat = 1;
- }
- if(%i == (%count - 1))
- {
- return %client;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement