Vehicle motor start (ON/OFF)
#5

PHP код:
if(newkeys == KEY_SUBMISSION && IsPlayerInAnyVehicle(playerid))
{
    new 
mot, lu, alar, por, cap, porma, ob;
    new 
carro = GetPlayerVehicleID(playerid);
    
GetVehicleParamsEx(carro, mot, lu, alar, por, cap, porma, ob);
    if(
mot == VEHICLE_PARAMS_OFF)
    {
        
SetVehicleParamsEx(carro, VEHICLE_PARAMS_ON, lu, alar, por, cap, porma, ob);
        
GameTextForPlayer(playerid,"~y~motor: ~g~ligado",5000,3);
        
PlayerPlaySound(playerid, 1054 , 0.0, 0.0, 10.0);
        }else{
        
GameTextForPlayer(playerid,"~y~motor: ~r~desligado",5000,3);
        
PlayerPlaySound(playerid, 1054 , 0.0, 0.0, 10.0);
        
SetVehicleParamsEx(carro, VEHICLE_PARAMS_OFF, lu, alar, por, cap, porma, ob);
    }
}
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: 1 Guest(s)