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

Players natives #37

Open
Mistrick opened this issue Jul 31, 2018 · 0 comments
Open

Players natives #37

Mistrick opened this issue Jul 31, 2018 · 0 comments
Labels
enhancement Priority: Medium sourcepawn Related to SorucePawn extension

Comments

@Mistrick
Copy link
Collaborator

Mistrick commented Jul 31, 2018

Description

Create get_players analog with own conditions.

// return players in array
native int GetPlayers(int players[32], int flags = 0, ConditionHandler func);

enum PlayerReturn {
    PlayerAllowed,
    PlayerDenied
}

public PlayerReturn PlayerCondition(int player)
{
    if(myFunc(player))
        return PlayerAllowed;
    return PlayerDenied;
}

Create menu with players and own conditions.
Something like native Menu CreatePlayersMenu(MenuHandler handler, int flags, ConditionHandler condition);

How do we replicate the issue?

Expected behavior (i.e. solution)

Other Comments

@Amaroq7 Amaroq7 added this to To do in SPMod via automation Jul 31, 2018
@Amaroq7 Amaroq7 removed this from To do in SPMod Oct 8, 2019
@Amaroq7 Amaroq7 added this to To do in SourcePawn Adapter via automation Oct 8, 2019
@Amaroq7 Amaroq7 added the sourcepawn Related to SorucePawn extension label Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Priority: Medium sourcepawn Related to SorucePawn extension
Projects
Development

No branches or pull requests

2 participants