[Ajuda] problema no ligar e desligar usando Y
#4

PHP код:
if(!IsPlayerInAnyVehicle(playerid))
        {
            
SendClientMessage(playeridAzul,"Vocк nгo estб em um veнculo");
            return 
1;
        }
        new 
motlualarporcappormaob;
        new 
carro GetPlayerVehicleID(playerid);
        if(
carro != INVALID_VEHICLE_ID)
        {
            if(
ligarv[playerid] == 0)
            {
                
GetVehicleParamsEx(carromotlualarporcappormaob);
                
SetVehicleParamsEx(carroVEHICLE_PARAMS_ONlualarporcappormaob);
                
ligarv[playerid] = 1;
                
SendClientMessage(playeridVerde"Ligado");
            }
            else
            {
                
GetVehicleParamsEx(carromotlualarporcappormaob);
                
SetVehicleParamsEx(carroVEHICLE_PARAMS_OFFlualarporcappormaob);
                
ligarv[playerid] = 0;
                
SendClientMessage(playeridVermelho"Desligado!");
            }
        } 
Reply


Messages In This Thread
problema no ligar e desligar usando Y - by Kojak - 26.02.2015, 06:42
Re: problema no ligar e desligar usando Y - by AssasinoLM - 26.02.2015, 07:26
Re: problema no ligar e desligar usando Y - by Kojak - 26.02.2015, 07:28
Re: problema no ligar e desligar usando Y - by GabrielDias_Invision - 26.02.2015, 10:37
Re: problema no ligar e desligar usando Y - by Kojak - 26.02.2015, 13:24
Re: problema no ligar e desligar usando Y - by Italoigt - 29.03.2015, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)