06.10.2015, 11:27
i need a egnine system when i press shift to start engine , fs or cript to add on gamemode !
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(IsPlayerInAnyVehicle(playerid)) { if(newkeys == KEY_JUMP) // Left Shift { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(GetPlayerVehicleID, 1, lights, alarm, doors, bonnet, boot, objective); SendClientMessage(playerid, -1, "You have enabled the vehicle's engine!"); } } return 1; }