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

Then to find the most wanted, use a loop to check if a player is wanted level 6.

pawn Code:
for (new i = 0; i < MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
        if(GetPlayerWantedLevel(i) == 6)
        {
            //Code here
        }
    }
}
Untested, but that's how I used to find mine.
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: 10 Guest(s)