[Ajuda] 2 Erros
#4

pawn Код:
//
    if(strcmp(cmd, "/cadeia", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new tempo[128];
            tmp = strtok(cmdtext, idx);
            tempo = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /cadeia [id] [ Tempo ]");
                return 1;
            }
            if(!strlen(tempo))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /cadeia [id] [ Tempo ]");
                return 1;
            }
            if(PlayerInfo[giveplayerid][pAdmin] >= 1339 && PlayerInfo[playerid][pAdmin] < 1338)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar carandiru para um Admin Dono !");
                return 1;
            }
            if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
                return 1;
            }
            new playa;
            new money;
            playa = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            money = strval(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 2)
            {
                if(IsPlayerConnected(playa))
                {
                    if(playa != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        format(string, sizeof(string), "* Voce prendeu %s.", 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] = 1;
                        PlayerInfo[playa][pJailTime] = money*60;
                        SetPlayerInterior(playa, 6);
                        SetPlayerPos(playa, 1172.9497070313,-1179.8718261719,86.65015411377);
                        format(string, sizeof(string), "Voce foi preso por %d minutos.   Fianca: Desabilitada", money);
                        SendClientMessage(playa, COLOR_LIGHTBLUE, string);
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Voce nao tem permissao para usar esse comando!");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
[Ajuda] 2 Erros - by Laercio - 01.11.2011, 14:44
Re: [Ajuda] 2 Erros - by array13 - 01.11.2011, 14:46
Re: [Ajuda] 2 Erros - by Laercio - 01.11.2011, 14:50
Re: [Ajuda] 2 Erros - by whiXґ - 01.11.2011, 14:55

Forum Jump:


Users browsing this thread: 2 Guest(s)