[Ajuda] Comando quase completo ajuda ?
#1

Esse eh o comando ! ↓↓
PHP код:
if(strcmp(cmd"/procurar"true) == 0)
    {
        
format(filesizeof(file), PASTA_CONTASGetPlayerNameEx(playerid));
        if(
dini_Int(file"Profissao") == Policial_M || dini_Int(file"Profissao") == Policial_C || dini_Int(file"Profissao") == Policial_F || dini_Int(file"Profissao") == Delegado || dini_Int(file"Profissao") == Bope || dini_Int(file"Profissao") == Swat || dini_Int(file"Profissao") == Narcoticos || dini_Int(file"Profissao") == FBI || dini_Int(file"Profissao") == Interpol || dini_Int(file"Profissao") == LSPD || dini_Int(file"aAdmin") == 3)
        {
            new 
plidmotivo[64];
            if(
sscanf(cmdtext"s[12]us[64]"cmdplidmotivo))
            {
                
SendClientMessage(playeridVermelho"Use: /procurar [id] [motivo]");
                return 
1;
            }
            if(
plid == playerid)
            {
                
SendClientMessage(playeridVermelho"Vocк nгo pode se procurar.");
                return 
;
            }
            if(!
IsPlayerConnected(plid))
            {
                
SendClientMessage(playeridVermelho"O(A) jogador(a) nгo estб conectado.");
            }
            else
            {
                if(
GetDistanceBetweenPlayers(plidplayerid) < 10)
                {
                    
SetPlayerWantedLevel(plid2);
                    
format(stringsizeof(string), "O(A) policial %s te setou um nivel de procurado, voce й um suspeito."GetPlayerNameEx(playerid));
                    
SendClientMessage(plidVermelhostring);
                    
format(stringsizeof(string), "O(A) jogador(a) %s esta sendo procurado(a) por %s. Motivo: %s"GetPlayerNameEx(plid), GetPlayerNameEx(playerid), motivo);
                    
SendClientMessageToAll(Bluestring);
                }
                else
                {
                    
SendClientMessage(playeridVermelho"Chegue mais perto para tornar essa pessoa um suspeito.");
                }
            }
        }
        else
        {
            
SendClientMessage(playerid,Vermelho"Apenas policiais podem usar este comando.");
        }
        return 
1;
    } 
Eu coloco /procurar [ID] [MOTIVO] , Vai normal mais sу quк eu coloco /procurados o jogador quк eu procureii nгo tб nos procurados mais no PC Dele lб aparece ele com as estrelas , oquк eu tenho quк arrumar no comando pra ele aparecer nos procurados quando eu procurar ?
Reply
#2

Alguem aeh pode solicitar uma ajuda ?
Reply
#3

Ola

Pelo que entendi o problema esta no /procurados

PT
Reply
#4

Atб entгo mais ou menos tenho quк , supondo quк ADD Procurar lб tipo isso , mais como ageito isso tem dicas ?
Reply
#5

Posta o comando /procurados ae

PT
Reply
#6

Tб aeh em cima LEK aonde eu postei mais vф posta dnv

Quote:

if(strcmp(cmd, "/procurados", true) == 0)
{
new count = 0, msg[1000];

SendClientMessage(playerid, 0x008000AA, ".:: Procurados ::.");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Procurados[i])
{
format(msg, sizeof(msg), "%s (ID: %d)", GetPlayerNameEx(i), i);
SendClientMessage(playerid, 0x0088CAAA, msg);
count++;
}
}
if(count == 0)
{
SendClientMessage(playerid, 0xFF0000AA, "Ninguйm online estб sendo procurado!");
}
return 1;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)