How to get the most wanted player in a game?
#16

Here is my code I used Ryders code:
pawn Code:
new
                playerWL[MAX_PLAYERS][Crime],
                index
                ;
            for(new i; i != MAX_PLAYERS; ++i) {
                if(IsPlayerConnected(i) && !IsPlayerNPC(i)) {
                    playerWL[index][player_WantedLevel] = GetPlayerWantedLevel(i);
                    playerWL[index++][player_ID] = i;
                }
            }
            GetPlayerHighestWantedLevel(playerWL, 0, index);

            new
                player_Name[20], string[24+MAX_PLAYER_NAME+1], player_Level[256];
            for(new i; i < 5; ++i) {
                if(i < index) {
                    GetPlayerName(playerWL[i][player_ID], player_Name, sizeof(player_Name));
                    format(string, sizeof(string), "~w~%s", player_Name);
                    format(player_Level, sizeof(player_Level), "%d", playerWL[i][player_WantedLevel]);
                }
                else
                    format(string, sizeof(string), "~r~N/A", player_Name);
            }
            TextDrawSetString(Textdraw38, player_Level);// level TD
            TextDrawShowForPlayer(playerid, Textdraw38);
            TextDrawSetString(Textdraw7, player_Name);//name TD
            TextDrawShowForPlayer(playerid, Textdraw7);
I want this to be more in further 14 textdraws. How can I do it? Can I use a stock function? Explain me in detail.

Thank you.
Reply


Messages In This Thread
How to get the most wanted player in a game? - by Faisal_khan - 23.05.2012, 02:17
Re: How to get the most wanted player in a game? - by Jonny5 - 23.05.2012, 02:20
Re: How to get the most wanted player in a game? - by iGetty - 23.05.2012, 02:22
Re: How to get the most wanted player in a game? - by SuperViper - 23.05.2012, 02:38
Re: How to get the most wanted player in a game? - by ViniBorn - 23.05.2012, 02:38
Re: How to get the most wanted player in a game? - by Faisal_khan - 23.05.2012, 07:08
Re: How to get the most wanted player in a game? - by MP2 - 23.05.2012, 07:23
Re: How to get the most wanted player in a game? - by Niko_boy - 23.05.2012, 07:26
Re: How to get the most wanted player in a game? - by MP2 - 23.05.2012, 07:38
Re: How to get the most wanted player in a game? - by Faisal_khan - 23.05.2012, 09:40
Re: How to get the most wanted player in a game? - by leonardo1434 - 23.05.2012, 10:15
Re: How to get the most wanted player in a game? - by Niko_boy - 23.05.2012, 10:20
Re: How to get the most wanted player in a game? - by [ABK]Antonio - 23.05.2012, 10:40
Re: How to get the most wanted player in a game? - by Face9000 - 23.05.2012, 10:55
Re: How to get the most wanted player in a game? - by Faisal_khan - 23.05.2012, 11:00
Re: How to get the most wanted player in a game? - by Faisal_khan - 23.05.2012, 11:03
Re: How to get the most wanted player in a game? - by Faisal_khan - 23.05.2012, 13:49
Re: How to get the most wanted player in a game? - by Jonny5 - 23.05.2012, 13:54
Re: How to get the most wanted player in a game? - by Faisal_khan - 23.05.2012, 14:01
Re: How to get the most wanted player in a game? - by kaisersouse - 23.05.2012, 14:54

Forum Jump:


Users browsing this thread: 9 Guest(s)