[Ajuda] /procurar bugado
#2

Aiai, mais um?

deus tem de piedade.. cancei vo fazer saporra de comando pra vc e edito samerda aqui!!

@edit, tai agora para de pedir samerda.. e estuda ele..

pawn Код:
if(strcmp(cmd, "/procurar", true) == 0 || strcmp(cmd, "/su", true) == 0)
    {
        new id[128],Pname[24],Sname[24],str[128],Sstr[128];
        GetPlayerName(playerid, Pname, sizeof(Pname));
        format(Sstr, sizeof(Sstr), "Contas/%s.ini", Pname);
        new prof = dini_Int(Sstr, "Profissao");
        new admm = dini_Int(Sstr, "pAdm01");
        if(prof == Policial_C || prof == Policial_F || prof == Recruta || prof == Bope || prof == Swat || prof == Rotam || prof == Policial_M || prof == FBI || prof == Interpol || admm == 1)
        {
            id = strtok(cmdtext, idx);
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++;}
            new offset = idx; new result[100];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; }
            result[idx - offset] = EOS;
           
            if(!strlen(id) || !strlen(result)) return SendClientMessage(playerid, 0xFFD39BAA, "Use: /procurar [id] [motivo] ou /su [id] [motivo]");
            if(IsPlayerConnected(strval(id)))
            {
                GetPlayerName(strval(id), Sname, sizeof(Sname));
                format(str, sizeof(str), "{0099FF}[x]{CCCCFF} Vocк foi colocado na lista de procurados pelo Policial %s || Motivo: %s", Pname, result);
                SendClientMessage(strval(id), 0xFFD39BAA, str);
                format(str, sizeof(str), "{0099FF}[x]{CCCCFF} O Jogador %s,  colocou %s na lista de procurados pelo motivo: %s!", Pname, Sname, result);
                SendClientMessageToAll(0xFFD39BAA, str);
                dini_IntSet(Sstr, "Procurado", dini_Int(Sstr, "Procurado")+1);
                SetPlayerWantedLevel(strval(id), GetPlayerWantedLevel(strval(id))+1);
                Procurados[strval(id)]++;
                return 1;
            }
            else return SendClientMessage(playerid, 0xFFD39BAA, "(ERRO) Jogador nгo conectado no momento!");
        }
        else return SendClientMessage(playerid, 0xFFD39BAA, "(ERRO) Vocк nгo pode usar esse comando!");
    }
testado..
Reply


Messages In This Thread
/procurar bugado - by Arthenry - 14.07.2012, 20:12
Re: /procurar bugado - by steeldark - 14.07.2012, 20:28
Re: /procurar bugado - by Miqueias Barros - 14.07.2012, 20:33
Re: /procurar bugado - by Arthenry - 14.07.2012, 20:51
Re: /procurar bugado - by Don_Speed - 14.07.2012, 20:58
Re: /procurar bugado - by steeldark - 14.07.2012, 21:31
Re: /procurar bugado - by Arthenry - 14.07.2012, 21:48
Re: /procurar bugado - by steeldark - 14.07.2012, 22:06
Re: /procurar bugado - by Arthenry - 14.07.2012, 22:12
Re: /procurar bugado - by steeldark - 14.07.2012, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)