if(IsPlayerInAnyVehicle(playerid)){ // player is in any vehicle, execute the other code..}else{ // player is not in any vehicle, send him the message.}