[AJUDA] " /trancar " do VIP Bugado
#1

Olб Pessoal !
Estou com um bug , que , inevitavelmente , nгo consigo tirar ...
Creio que o Bug esteja em [cLockCar] .
Cуdigo :
pawn Код:
if(strcmp(tmp, "trancar", true) == 0)
        {
            if(PlayerInfo[playerid][pCarKey] == 0 && PlayerInfo[playerid][pCarKey2] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um Carro VIP.");
                return true;
            }
            if(PlayerInfo[playerid][pCarKey] != vehid && PlayerInfo[playerid][pCarKey2] != vehid)
            {
                SendClientMessage(playerid, COLOR_GREY, "Esse nгo й seu Carro VIP.");
                return true;
            }
            new keycar;
            if(vehid == PlayerInfo[playerid][pCarKey]) { keycar = PlayerInfo[playerid][pVeiculo]; }
            else if(vehid == PlayerInfo[playerid][pCarKey2]) { keycar = PlayerInfo[playerid][pVeiculo2]; }
            if(IsPlayerConnected(playerid))
            {
                if(CarInfo[keycar][cLock] == 1)
                {
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i)) SetVehicleParamsForPlayer(CarInfo[keycar][ownedvehicle],i,0,0);
                }
                format(string, sizeof(string), "~w~Veiculo VIP~n~~g~Aberto");
                PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
                GameTextForPlayer(playerid, string, 10000, 3);
                CarInfo[keycar][cLock] = 0;
                return true;
                }
                else
                {
                for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    if(IsPlayerConnected(i)) SetVehicleParamsForPlayer(CarInfo[keycar][ownedvehicle],i,0,1);
                }
                format(string, sizeof(string), "~w~Veiculo VIP~n~~r~Trancado");
                PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
                GameTextForPlayer(playerid, string, 10000, 3);
                CarInfo[keycar][cLock] = 1;
                return true;
                }

            }
            return true;
Lembrando , que o Bug й , se a pessoa usar /veiculo trancar , Ela nгo poderб entrar no PRУPRIO CARRO , se Sair
Reply


Messages In This Thread
[AJUDA] " /trancar " do VIP Bugado - by andrecvv - 26.05.2012, 13:50
Re: [AJUDA] " /trancar " do VIP Bugado - by rjjj - 26.05.2012, 14:21
Re: [AJUDA] " /trancar " do VIP Bugado - by andrecvv - 26.05.2012, 14:32
Re: [AJUDA] " /trancar " do VIP Bugado - by andrecvv - 26.05.2012, 14:51
Re: [AJUDA] " /trancar " do VIP Bugado - by CidadeNovaRP - 26.05.2012, 15:20
Re: [AJUDA] " /trancar " do VIP Bugado - by paulor - 26.05.2012, 15:24
Re: [AJUDA] " /trancar " do VIP Bugado - by andrecvv - 26.05.2012, 17:52

Forum Jump:


Users browsing this thread: 2 Guest(s)