#define PRESSED(%0) \ (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ if(PRESSED(KEY_FIRE)) { new vehicleid = GetPlayerVehicleID(playerid); if(vehicleid) { AddVehicleComponent(vehicleid, 1010); } } return 1;}