stock criteria(); { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerWantedLevel(playerid) > 1) { //code that adds the player to the dialog } } } new list[5000]; format(list, sizeof(list), ?); ShowPlayerDialog(playerid, -1, DIALOG_STYLE_LIST, "Playerlist", list, "ok","ok"); }
stock criteria(); { new szList[800]; for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerWantedLevel(i) > 1) { format(szList, sizeof(szList), "%s-%s (Wanted Level: %d\n", szList, Getlayername(i), GetPlayerWantedLevel(i)); // Change the getplayername the i = Playerid you're looping all players in the server } } } ShowPlayerDialog(playerid, -1, DIALOG_STYLE_LIST, "Playerlist", list, "ok","ok"); }
Код:
stock criteria(); { new szList[800]; for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(GetPlayerWantedLevel(i) > 1) { format(szList, sizeof(szList), "%s-%s (Wanted Level: %d\n", szList, Getlayername(i), GetPlayerWantedLevel(i)); // Change the getplayername the i = Playerid you're looping all players in the server } } } ShowPlayerDialog(playerid, -1, DIALOG_STYLE_LIST, "Playerlist", list, "ok","ok"); } |