06.10.2015, 13:19
Код:
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; }