Amaroq7/SPMod

Players natives

Opened this issue · 0 comments

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