[Pedido] /julgar
#1

BOM QUERIA UM /JULGAR SOMENTE PARA A ORG 25 TIPO UM /CADEIA Q PODIA SER USADO EM 1°CORDENADA

FAZ MAS OU MENOS ASSIM
pawn Код:
if(strcmp(cmd, "/celaadmin", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /celaadmin [id] [tempo] [motivo]");
                return 1;
            }
            if(PlayerInfo[playerid][pAdmin] <= 4)
            {
                if(PlayerInfo[playerid][pJailed] != 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "Vocк nгo pode prender quem jб estб Preso!");
                    return 1;
                }
            }
            new length = strlen(cmdtext);
            new playa;
            new money;
            playa = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            money = strval(tmp);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /celaadmin [id] [tempo] [motivo]");
                return 1;
            }
            if(PlayerInfo[playerid][pJailed] != 0 && PlayerInfo[playerid][pAdmin] < 1338)
            {
                SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode tirar da cadeia!");
                return 1;
            }
            if (PlayerInfo[playerid][pAdmin] >= 2)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1340  && PlayerInfo[playerid][pAdmin] != 1341 && PlayerInfo[playerid][pAdmin] != 1342)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                    return 1;
                }
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        if(PlayerInfo[giveplayerid][pSex] == 1)
                        {
                            SetPlayerSkin(giveplayerid, 42);
                        }
                        else
                        {
                            SetPlayerSkin(giveplayerid, 69);
                        }
                        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* Vocк mandou %s para a cela admin.", giveplayer);
                        SendClientMessage(playerid, COLOR_LIGHTRED, string);
                        format(string, sizeof(string), "* Voce foi preso pelo  Admin %s.", sendername);
                        SendClientMessage(playa, COLOR_LIGHTRED, string);
                        ResetPlayerWeapons(playa);
                        WantedPoints[playa] = 0;
                        PlayerInfo[playa][pJailed] = 9;
                        PlayerInfo[playa][pJailTime] = money*60;
                        SetPlayerInterior(playa, 0);
                        SetPlayerPos(playa, 1175.5886,-1182.0431,87.0254);
                        format(string, sizeof(string), "Voce foi preso por %d Minutos na Cela Admin.", money);
                        SendClientMessage(playa, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "AdmCmd: %s Prendeu %s Por %d Minutos Na Cadeia - Motivo: %s", PlayerName(playerid), giveplayer,money,(result));
                        SendClientMessageToAll(COLOR_LIGHTRED, string);
                        SetPlayerSkin(playa,42);
                        SetPlayerChatBubble(playa, ".", COLOR_RED, 1, 1);
                        return 1;
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce nгo esta autorizado a usar este comando!");
            }
        }
        return 1;
    }
Reply
#2

ngm?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)