[Ajuda] Comando
#1

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;
    }
Reply
#2

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

man nada ver com oque eu quero '-'
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)