SA-MP Forums Archive
[Ajuda] Ajuda ai - 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 ai (/showthread.php?tid=444673)



Ajuda ai - MrBrownstone - 17.06.2013

O comando /agendar funfa, mais quando o player loga, nada acontece com ele, onde coloco pro player ser setado na cadeia quando ele logar ?
Код:
if(strcmp(cmd, "/agendar",true) == 0)
    {
        if(admtrampando[playerid] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                new jogador[128], tempo[128], str[50];
        jogador = strtok(cmdtext, idx);
        tempo = strtok(cmdtext, idx);
        new length = strlen(cmdtext);
        while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; }
        new offset = idx; new result[128];
        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; }
        result[idx - offset] = EOS;
        if(!strlen(jogador) || !strlen(tempo) || !strlen(result)) return SendClientMessage(playerid, COLOR_GRAD2, "USE: /agendar [Nome] [Tempo] [Motivo]");
        for(new x = 0, y = GetMaxPlayers(); x != y; x++)
        {
            if(IsPlayerConnected(x))
            {
            new nome[24];
            GetPlayerName(x, nome, MAX_PLAYER_NAME);
            if(!strcmp(nome, jogador))  return SendClientMessage(playerid, COLOR_GREY, " O jogador estб online... Use o comando comum para prendelo. !");
            }
        }
        format(str,sizeof(str), "Contas/%s.ini", jogador);
        if(!dini_Exists(str)) return SendClientMessage(playerid, COLOR_GREY, "   Nome Invalido! !");
        format(string, sizeof(string), "O admin %s agendou %s, %d minutos, Motivo: %s",PlayerName(playerid), jogador, strval(tempo), result);
        SendClientMessageToAll(COLOR_LIGHTRED, string);
        dini_IntSet(str, "pJailed", 2);
        dini_IntSet(str, "pJailTime", strval(tempo) * 60);
        return 1;
    }



Re: Ajuda leo - leomachado - 17.06.2013

Como fasso para que o admin ao sair do /tv nгo spawn, fique no mesmo local de quando uso o comando.


Re: Ajuda ai - MrBrownstone - 17.06.2013

Pqp ninguem ajuda em ! Aqui e forum de ajuda mesmo ? --'


Re: Ajuda ai - ExTRanyMoney - 17.06.2013

Nуs apenas tiramos duvidas e esse forum nгo й sу para pedir ajuda aqui tem os melhores scripters de samp mostrando oque sabe e divulgando oque tem para ajudar a todos ok penso errado colega se ninguem te respondeu ate agora й por que nгo sabe como te ajuda ; )


Re: Ajuda ai - Lucas_Pawno - 17.06.2013

Vou te dar uma luz, nгo darei tudo de mгo beijada...

OnPlayerConnect....


Re: Ajuda ai - MrBrownstone - 19.06.2013

Quote:
Originally Posted by Lucas_Pawno
Посмотреть сообщение
Vou te dar uma luz, nгo darei tudo de mгo beijada...

OnPlayerConnect....
Cara que frescurage, parece que nao quer ajudar, que e em onplayerconnect eu sei ne animal, to perguntando COMOOO faзo --'