[Ajuda] /Veiculo cor bug
#1

Dae galera o /Veiculo cor esta dando bug quando dou GMX no meu Server e entro no veiculo o comando nao funciona mais acho que o Veiculo ta mudando de [ID], quando compro o veiculo vip e nao do GMX fica normal e tudo funciona vo postar os codigos abaixo.
pawn Код:
}
        if(strcmp(tmp, "cor", true) == 0)
        {
            if(PlayerInfo[playerid][pCarKey] == 0)
            {
            SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um Veiculo  Vip!");
            return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
            SendClientMessage(playerid, COLOR_GRAD2, "USE: /veiculo cor [cor 1] [cor 2]");
            return 1;
            }
            new carid;
            new getcarid;
            new Veiculo = PlayerInfo[playerid][pVeiculo];
            new cor1;
            cor1 = strval(tmp);
            if(cor1 < 0 || cor1 > 186) { SendClientMessage(playerid, COLOR_GREY, "   Numero de cores nao pode ser inferior a 0 ou acima de 186 !"); return 1; }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /veiculo cor [cor 1] [cor 2]");
                return 1;
            }
            new cor2;
            cor2 = strval(tmp);
            if(cor2 < 0 || cor2 > 186) { SendClientMessage(playerid, COLOR_GREY, "   Numero de cores nao pode ser inferior a 0 ou acima de 186 !"); return 1; }
            if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][pCarKey]) { carid = PlayerInfo[playerid][pCarKey]; }
            if(IsPlayerInVehicle(playerid,carid) && CarInfo[Veiculo][cOwned] == 1)
            {
                getcarid = GetPlayerVehicleID(playerid);
                if(getcarid == carid)
                {
                CarInfo[Veiculo][cColorOne] = cor1;
                CarInfo[Veiculo][cColorTwo] = cor2;
                GameTextForPlayer(playerid, "Vocк mudou a cor do seu veiculo.", 10000, 3);
                ChangeVehicleColor(carid,cor1,cor2);
                TogglePlayerControllable(playerid, 1);
                SaveCars();
                return 1;
                }
                return 1;
            }
            return 1;
     }
     return 0;
    }

    }
    if(strcmp(cmd, "/gmx", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {

            if(PlayerInfo[playerid][pAdmin] > 1337)
            {
                if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342) { return SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)"); }
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i))
                    GetPlayerName(playerid,playername,sizeof(playername));
                    format(string,sizeof(string),"Admin %s Reiniciou o Server!",PlayerName(playerid));
                    SendClientMessageToAll(COR_GRO,string);
                    format(string,sizeof(string),"Admin %s Reiniciou o Server!",PlayerName(playerid));
                    SendClientMessageToAll(COR_VAGOS,string);
                    RemoveGangue(playerid);
                    { OnPlayerSave(i); }
                }
                GameModeExitFunc();
            }
            else
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo tem autorizaзгo para dar GMX!");
            }
        }
        return 1;
    }
Reply


Messages In This Thread
[Ajuda] /Veiculo cor bug - by Leo_Lost - 23.12.2011, 15:11
Re: [Ajuda] /Veiculo cor bug - by Sampizito - 23.12.2011, 22:44
Re: [Ajuda] /Veiculo cor bug - by Leo_Lost - 23.12.2011, 23:34
Re: [Ajuda] /Veiculo cor bug - by Sampizito - 23.12.2011, 23:41
Re: [Ajuda] /Veiculo cor bug - by Leo_Lost - 24.12.2011, 13:16
Re: [Ajuda] /Veiculo cor bug - by Leo_Lost - 26.12.2011, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)