/wanted list of persons with wanted [EDIT... problem solved]
#8

OK i got it to work
thanks for the help!

good code is this: (it won't show players wantedlevel only if he's wanted or not)

Код:
//at the other #definings!
#define COLOR_WHITE 0xFFFFFFAA

// public OnPlayerCommandText(playerid, cmdtext[])
// {
if(strcmp("/wanted", cmdtext, true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
         SendClientMessage(playerid, COLOR_WHITE, "Current Wanted Suspects;");
         for(new i = 0; i < MAX_PLAYERS; i++)
         {
               new plwl = GetPlayerWantedLevel(i);
               if(plwl > 0)
               {
                    new wantedguy[MAX_PLAYER_NAME];
                    new string[MAX_PLAYER_NAME];
                    GetPlayerName(i, wantedguy, sizeof(wantedguy));
                    format(string, sizeof(string), "Name: %s || Wanted Level: %d", wantedguy, plwl);
                    SendClientMessage(playerid, TEAM_CIVIL_COLOR, string);
               }
         }
         SendClientMessage(playerid, COLOR_WHITE, "___________________");
     }
     return 1;
}

// return 0;

// }
Reply


Messages In This Thread
/wanted list of persons with wanted [EDIT... problem solved] - by jesse237 - 22.02.2009, 20:46
Re: /wanted list of persons with wanted - by Zack9764 - 22.02.2009, 20:49
Re: /wanted list of persons with wanted - by jesse237 - 22.02.2009, 21:22
Re: /wanted list of persons with wanted - by jesse237 - 22.02.2009, 21:57
Re: /wanted list of persons with wanted - by Coicatak - 23.02.2009, 08:21
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 13:14
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 13:30
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 14:49
Re: /wanted list of persons with wanted - by Coicatak - 24.02.2009, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)