public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { #pragma ret_mempcy if (PRESSED(KEY_SPRINT)) { if(IsPlayerInAnyVehicle(playerid)) { RepairVehicle(GetPlayerVehicleID(playerid)); SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been successfully repaired!"); } { else SendClientMessage(playerid, 0xFFFFFFFF, "You are not in a vehicle!"); } } } return 1; }