SA-MP Forums Archive
[Ajuda] Ajuda no comando /wanted - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ajuda no comando /wanted (/showthread.php?tid=395231)



Ajuda no comando /wanted - Sonik_Paintballer - 25.11.2012

pawn Код:
if(strcmp(cmd, "/wanted", true) == 0)
    {
        new string2[128];
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pDBanned] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Voce foi banido do servico policial!");
                return 1;
            }
            if(PlayerInfo[playerid][pDuty] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "** Voce nao esta em serviзo!");
                return 1;
            }
            if(IsACop(playerid) || IsAFreecop(playerid))
            {
                new x;
                SendClientMessage(playerid, COLOR_GREEN, "Current Wanted Suspects:");
                for(new i=0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i))
                    {
                        if(WantedLevel[i] > 1)
                        {
                            GetPlayerName(i, giveplayer, sizeof(giveplayer));
                            format(string2, sizeof(string2), " %s: %d" ,giveplayer,WantedLevel[i]);
                            x++;
                            if(x > 3)
                            {
                                SendClientMessage(playerid, COLOR_YELLOW, string);
                                x = 0;
                                format(string2, sizeof(string2), " %s: %d" ,giveplayer,WantedLevel[i]);
                            }
                            else
                            {
                                format(string2, sizeof(string2), "%s, ", string);
                            }
                        }
                    }
                }
                if(x <= 3 && x > 0)
                {
                    string[strlen(string2)-2] = '.';
                    SendClientMessage(playerid, COLOR_YELLOW, string);
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "   Voce nao e Cop / FBI / National Guard !");
            }
        }//not connected
        return 1;
    }
quando eu digito /wanted aparece isso

(25/11/2012)[14:55:59] Sonik_Paintballer [CMD] -> /wanted.


nao aparece o nick dos procurado e aparece essa hora


REMOVIDO - Claude_StreeT - 01.12.2012

REMOVIDO