Players natives
Opened this issue · 0 comments
Mistrick commented
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);