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



Comando - Netiinho - 22.05.2014

ALGUEM PODE MIM AJUDA A COLOCA PRA PRENDER COM TEMPO EXP /bust ID, TEMPO, MOTIVO
pawn Код:
if(strcmp(cmd, "/bust", true) == 0)
    {
        format(file, sizeof(file), PASTA_CONTAS, GetPlayerNameEx(playerid));
        if(pAdmin[playerid] > 1)
        {
            new plid, motivo[256];
            if(sscanf(cmdtext, "s[7]us[256]", cmd, plid, motivo))
            {
                SendClientMessage(playerid, Vermelho, "Use: /bust [id] Tempo Motivo");
                return 1;
            }
            if(!IsPlayerConnected(plid))
            {
                SendClientMessage(playerid, Vermelho, "O(A) jogador(a) nгo estб conectado.");
            }
            else
            {
            if(GetDistanceBetweenPlayers(plid, playerid) < 100000)
                {
                    if(Procurados[plid] == 0)
                    {
                        PrenderPlayer(plid);
                        format(string, sizeof(string), "O(A) jogador(a) %s Foi Preso por %s Segundos Motivo: %s ", GetPlayerNameEx(plid), GetPlayerNameEx(playerid), motivo);
                        SendClientMessage(plid, Blue, string);
                    }
                }
            }
        }
        else
        {
            SendClientMessage(playerid, Vermelho, "Apenas Admins podem usar este comando!");
        }
        return 1;
    }



Re: Comando - arakuta - 22.05.2014

https://sampforum.blast.hk/showthread.php?tid=277842


Re: Comando - Netiinho - 22.05.2014

man nada ver com oque eu quero '-'