Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player iterators #45

Open
Mistrick opened this issue Aug 11, 2018 · 0 comments
Open

Player iterators #45

Mistrick opened this issue Aug 11, 2018 · 0 comments

Comments

@Mistrick
Copy link
Collaborator

Description

Create iterators for player loops. Do this for SPMod and for SPMod plugins.

PlayersItterReset();
Player player;
while (PlayersItterNext(PL_ITTER_EXCLUDE_HLTV | PL_ITTER_EXCLUDE_BOTS)) {
  player = PlayersItterGetPlayer();
  // Do some stuf
}

or

for(Player p = GetFirstPlayer(SOME_SEARCH_FLAGS); p; p.NextPlayer(/* flags? */))
{
	// code
}

How do we replicate the issue?

Expected behavior (i.e. solution)

Other Comments

@Amaroq7 Amaroq7 added this to To do in SPMod via automation Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
SPMod
  
To do
Development

No branches or pull requests

2 participants