i need .. -
the script can add under onplayerkeystatechange.
Re: i need .. -
Re: i need .. -
Re: i need .. -
Re: i need .. -
Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys){
if(newkeys == KEY_LOOK_BEHIND){
if(IsPlayerInAnyVehicle(playerid)){
new engine, lights, alarm, doors, bonnet, boot, objective, vehid;
vehid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vehid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehid, (engine>0?0:1), lights, alarm, doors, bonnet, boot, objective);
if((engine>0?0:1) == 1){
//Msg engine ON
} else {
//Msg engine OFF
}
}
}
return 1;
}
Re: i need .. -