Vehicle motor start (ON/OFF)
#5

PHP код:
if(newkeys == KEY_SUBMISSION && IsPlayerInAnyVehicle(playerid))
{
    new 
motlualarporcappormaob;
    new 
carro GetPlayerVehicleID(playerid);
    
GetVehicleParamsEx(carromotlualarporcappormaob);
    if(
mot == VEHICLE_PARAMS_OFF)
    {
        
SetVehicleParamsEx(carroVEHICLE_PARAMS_ONlualarporcappormaob);
        
GameTextForPlayer(playerid,"~y~motor: ~g~ligado",5000,3);
        
PlayerPlaySound(playerid1054 0.00.010.0);
        }else{
        
GameTextForPlayer(playerid,"~y~motor: ~r~desligado",5000,3);
        
PlayerPlaySound(playerid1054 0.00.010.0);
        
SetVehicleParamsEx(carroVEHICLE_PARAMS_OFFlualarporcappormaob);
    }
}
return 
1;

Reply


Messages In This Thread
Vehicle motor start (ON/OFF) - by NexySamp - 14.08.2015, 15:48
Re: Vehicle motor start (ON/OFF) - by EncikBuyer - 14.08.2015, 15:58
Re: Vehicle motor start (ON/OFF) - by Abagail - 14.08.2015, 16:04
Re: Vehicle motor start (ON/OFF) - by NexySamp - 14.08.2015, 17:38
Re: Vehicle motor start (ON/OFF) - by iTakelot - 14.08.2015, 17:42
Re: Vehicle motor start (ON/OFF) - by Abagail - 14.08.2015, 18:05
Re: Vehicle motor start (ON/OFF) - by NexySamp - 14.08.2015, 18:16
Re: Vehicle motor start (ON/OFF) - by Vince - 14.08.2015, 18:25

Forum Jump:


Users browsing this thread: 2 Guest(s)